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
14
How to become a web developer with WordPress and zero experience
wordcampbangkok
1
20
ออกแบบเว็บไซต์โดยใช้ User Journey
wordcampbangkok
0
30
WordPress Security – Know Your Enemy
wordcampbangkok
0
21
Creating-Thai-themes-2017
wordcampbangkok
0
19
ก้าวแรก WordPress ต้องรู้อะไรบ้าง
wordcampbangkok
0
19
Other Decks in Technology
See All in Technology
モブプログラミング再入門 ー 基本から見直す、AI時代のチーム開発の選択肢 ー / A Re-introduction of Mob Programming
takaking22
5
1.4k
AIエージェント時代に備える AWS Organizations とアカウント設計
kossykinto
3
900
「Blue Team Labs Online」入門 - みんなで挑むログ解析バトル
v_avenger
0
160
DevOpsエージェントで実現する!! AWS Well-Architected(W-A) を実現するシステム設計 / 20260307 Masaki Okuda
shift_evolve
PRO
3
700
JAWS FESTA 2025でリリースしたほぼリアルタイム文字起こし/翻訳機能の構成について
naoki8408
1
450
[JAWSDAYS2026]Who is responsible for IAM
mizukibbb
0
560
Claude Codeが爆速進化してプラグイン追従がつらいので半自動化した話 ver.2
rfdnxbro
0
520
身体を持ったパーソナルAIエージェントの 可能性を探る開発
yokomachi
1
110
[JAWS DAYS 2026]私の AWS DevOps Agent 推しポイント
furuton
0
150
kintone開発のプラットフォームエンジニアの紹介
cybozuinsideout
PRO
0
870
非情報系研究者へ送る Transformer入門
rishiyama
11
7.4k
楽しく学ぼう!ネットワーク入門
shotashiratori
1
100
Featured
See All Featured
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
60
42k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.5k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
0
180
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
150
WCS-LA-2024
lcolladotor
0
480
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
70
Utilizing Notion as your number one productivity tool
mfonobong
4
260
Six Lessons from altMBA
skipperchong
29
4.2k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
200
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.9k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
760
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