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
0
13
WordPress Hooks The Right Way to Extend Your WordPress
การเพิ่มขีดความสามารถให้ WordPress โดยใช้ WordPress Hooks
WordCamp Bangkok
February 18, 2017
Tweet
Share
More Decks by WordCamp Bangkok
See All by WordCamp Bangkok
Growing Together – Thoughts on the Global WordPress Community
wordcampbangkok
0
23
ทำ Instant Article กับ AMP บน WordPress ได้ไม่ง้อ Coding
wordcampbangkok
0
25
Learn how to create video with a smartphone for your WordPress blog
wordcampbangkok
0
15
Editor In Digital Content World
wordcampbangkok
0
13
How to become a web developer with WordPress and zero experience
wordcampbangkok
1
19
ออกแบบเว็บไซต์โดยใช้ User Journey
wordcampbangkok
0
27
WordPress Security – Know Your Enemy
wordcampbangkok
0
21
Creating-Thai-themes-2017
wordcampbangkok
0
17
ก้าวแรก WordPress ต้องรู้อะไรบ้าง
wordcampbangkok
0
19
Other Decks in Technology
See All in Technology
1,000 にも届く AWS Organizations 組織のポリシー運用をちゃんとしたい、という話
kazzpapa3
0
110
Bill One急成長の舞台裏 開発組織が直面した失敗と教訓
sansantech
PRO
2
390
日本の85%が使う公共SaaSは、どう育ったのか
taketakekaho
1
240
20260204_Midosuji_Tech
takuyay0ne
1
160
Oracle Base Database Service 技術詳細
oracle4engineer
PRO
15
93k
Agile Leadership Summit Keynote 2026
m_seki
1
660
Cosmos World Foundation Model Platform for Physical AI
takmin
0
960
Tebiki Engineering Team Deck
tebiki
0
24k
コスト削減から「セキュリティと利便性」を担うプラットフォームへ
sansantech
PRO
3
1.6k
AIエージェントに必要なのはデータではなく文脈だった/ai-agent-context-graph-mybest
jonnojun
1
230
Bedrock PolicyでAmazon Bedrock Guardrails利用を強制してみた
yuu551
0
260
フルカイテン株式会社 エンジニア向け採用資料
fullkaiten
0
10k
Featured
See All Featured
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
420
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
98
エンジニアに許された特別な時間の終わり
watany
106
230k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
120
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
54k
Darren the Foodie - Storyboard
khoart
PRO
2
2.4k
Discover your Explorer Soul
emna__ayadi
2
1.1k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
170
Fireside Chat
paigeccino
41
3.8k
Design in an AI World
tapps
0
140
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
260
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
460
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