Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
WordPress Hooks The Right Way to Extend Your Wo...
Search
WordCamp Bangkok
February 18, 2017
Technology
16
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
WordPress Hooks The Right Way to Extend Your WordPress
การเพิ่มขีดความสามารถให้ WordPress โดยใช้ WordPress Hooks
WordCamp Bangkok
February 18, 2017
More Decks by WordCamp Bangkok
See All by WordCamp Bangkok
Growing Together – Thoughts on the Global WordPress Community
wordcampbangkok
0
27
ทำ Instant Article กับ AMP บน WordPress ได้ไม่ง้อ Coding
wordcampbangkok
0
27
Learn how to create video with a smartphone for your WordPress blog
wordcampbangkok
0
19
Editor In Digital Content World
wordcampbangkok
0
17
How to become a web developer with WordPress and zero experience
wordcampbangkok
1
27
ออกแบบเว็บไซต์โดยใช้ User Journey
wordcampbangkok
0
34
WordPress Security – Know Your Enemy
wordcampbangkok
0
23
Creating-Thai-themes-2017
wordcampbangkok
0
24
ก้าวแรก WordPress ต้องรู้อะไรบ้าง
wordcampbangkok
0
26
Other Decks in Technology
See All in Technology
Contract One Engineering Unit 紹介資料
sansan33
PRO
0
19k
名刺メーカーDevグループ 紹介資料
sansan33
PRO
0
1.2k
新しい SLO が良い感じにハマっている話
z63d
4
2.1k
トヨタ⽣産⽅式(TPS)⼊⾨
recruitengineers
PRO
1
460
MIRU 2026 チュートリアル
keisuke198619
0
820
NetBoxを利用した作業効率化の試み_NetDevNight4
tnoha
0
470
Invisible to AI? Making TYPO3 Sites Quotable by AI Search Systems
wolfgangwagner
0
110
【CEDEC2026】『ウマ娘 プリティーダービー』 英語版のキャラクターの方言や口調をローカライズするための創造的アプローチ
cygames
PRO
1
180
ボトムアップ文化が強い組織で セキュリティをどう根付かせていくかの現在進行形の話 / Making Security Stick in a Bottom-Up Organization
yamaguchitk333
0
140
Software Supply Chain Attackからクラウド環境を守るためにできること
lhazy
2
130
『三匹の子ぶた』から学ぶネットワークセキュリティの昔と今 / Network Security: Then and Now Through the Lens of The Three Little Pigs
nttcom
1
1.7k
QAエンジニア起点で進める、SmartHRにおける信頼性向上について
kaomi_wombat
1
110
Featured
See All Featured
Why Our Code Smells
bkeepers
PRO
340
58k
Automating Front-end Workflow
addyosmani
1370
210k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
270
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
Into the Great Unknown - MozCon
thekraken
41
2.7k
Designing for Timeless Needs
cassininazir
1
430
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.4k
How to Talk to Developers About Accessibility
jct
2
480
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
119
120k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
200
Speed Design
sergeychernyshev
33
2k
First, design no harm
axbom
PRO
2
1.2k
Transcript
WordPress Hooks: The Right Way to Extend Your WordPress
B Y K A N O U I V I R A C H http://www.freeiconspng.com/free-images/hook-icon-24086
Research & Development Architect KAN OUIVIRACH Who am I?
WHAT ARE HOOK?
http://vignette1.wikia.nocookie.net/villains/images/a/a6/Captain_Hook_(Hook).jpg/revision/ latest?cb=20140330214655 http://www.punchdrunksports.com/n4s-content/uploads/2015/01/Boxing-Right-Hook.jpg ??????
HOOK are… • Magic • Extend WordPress without messing with
the core! • Event-driven programming • Actions + Filters
How do they work?
What if we want to do something here? W O
R D P R E S S <code> </code> Normal Flow ? ? ?
Hook it! W O R D P R E S
S <code> </code> We write code. <code>
W O R D P R E S S <code>
</code> <code> New Flow!!! 2 1 3
Actions vs. Filters
File: wp-includes/plugin.php
File: wp-includes/plugin.php apply_filters
File: wp-includes/plugin.php do_action
Actions vs. Filters do something change something
File: functions.php Add text in ‘Footer’
File: functions.php Make content ‘UPPERCASE’
YOUR OWN HOOK!
Recap • Extend without modifying • Actions vs. Filters
Thank you https://github.com/zkan/wordcamp-bangkok-2017