Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
今日から始めるfunctions.phpカスタマイズ入門
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Shizumi Yoshiaki
February 27, 2021
Programming
570
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
今日から始めるfunctions.phpカスタマイズ入門
WP ZoomUP #59
今日からはじめるプラグイン作成
でお話した内容です。
Shizumi Yoshiaki
February 27, 2021
More Decks by Shizumi Yoshiaki
See All by Shizumi Yoshiaki
こんなこともできるWP-CLI 〜0から触ってみよう!〜
shizumi
4
1k
カスタムフィールド製造業からの脱却 〜ブロックエディター(Gutenberg)をカスタムする方法〜
shizumi
0
3.2k
カスタムフィールド製造業からの脱却 〜オリジナルブロックエディタからGutenbergへ〜
shizumi
4
1.5k
Other Decks in Programming
See All in Programming
コードレビューのボトルネックを"する側"と"される側"の両面から解消する
yub0n
2
1.3k
難しいけど、読めた。- OSSの入口に立った話。
sts11142
0
130
Verilogで学ぶCPU自作入門.pdf
uyuki234
7
3.9k
JRuby: Past, Present, and Future
headius
0
220
世界の中心で、AI(App Intents)をさけぶ ー App Intents中心設計の実践ガイド
touyou
0
750
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
380
速く作れる。その次は、速く確かめられる開発へ 〜AIネイティブ開発を支える、Shift Down〜 / Can build fast. Next, moving to development where we can verify fast.
rkaga
8
5.3k
AWS CDKのカスタムリソースでContinuum(旧Security Agent)を実装した話 | Implementing Continuum (formerly Security Agent) via AWS CDK Custom Resource
akihisaikeda
2
120
TiDB Cloudのカスタムコントローラーによるオートスケール対応
takaidohigasi
0
140
WebRTC映像をAirPlayに対応させる挑戦.pdf
monolithic_adam
0
330
市販E-Readerを乗っ取れ 〜Embedded Swiftで電子ペーパーガジェットを制御する〜
trickart
0
230
機械に任せるテスト、人が見るテスト ⽣成AIで引き直した、運⽤保守フェーズの線引き
dske104
0
140
Featured
See All Featured
So, you think you're a good person
axbom
PRO
2
2.2k
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.4k
Chasing Engaging Ingredients in Design
codingconduct
0
340
Raft: Consensus for Rubyists
vanstee
142
7.7k
The SEO Collaboration Effect
kristinabergwall1
1
580
Building the Perfect Custom Keyboard
takai
2
890
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.3k
How to train your dragon (web standard)
notwaldorf
97
6.8k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Amusing Abliteration
ianozsvald
1
320
4 Signs Your Business is Dying
shpigford
187
23k
The Limits of Empathy - UXLibs8
cassininazir
1
690
Transcript
今日! 始 ) functions php ) 」 !
? ?
今日 」 話
functions php
functions php 本質 同 WordPress ) 」 ( 調 )
! functions php 以下 書 的 出 ) functions php ) 」 」 作? ) 」 ) 内容 一緒
functions php 本質 同 WordPress ) 」 ( 調 )
! functions php 以下 書 的 出 ) functions php ) 」 」 作? ) 」 ) 内容 一緒 functions php
」 後半 (
前半 ) PHP 探 方 ? 書 )
前半 ) PHP 探 方 ? 書 )
PHP
変数 保持 箱 PHP ! 始 ) 箱 情報
配列 配列 一 変数 中 複数 情報 入 ) )
変数 箱 中 仕切( 入 部屋 情報 入 )」 ( 変数 後 部屋番号 部屋 名前 付 例 array array hoge
関数 情報 入 色々 事 返 ) 」 ( 製麺機
生地 材料 入 ) 中 色々 ) 麺 ? 出 ) 情報 入 何!出 ) ) 逆 情報入 何 出 ) 入 )情報 引数 出 )情報 戻(値 返(値
( , 知? 前半 ! )
前半 ) PHP 探 方 ? 書 )
None
種類 ) filter hook action hook
違 情報 受 取? 変化 返 ( 最後 必 return
設定 ) add filter 作) apply filters 」 何! 実行 ) 最後 return )必要 設定 ) add action 作) do action
優先度 優先度 設定 ) ! 実行 数 大 実行 )
特 内容 書 換,) 優先度 重要 折角書 換, 別 」 上書 ) 変更 見, 注意 必要 言? 大 数値 ) 考,
前半 ) PHP 探 方 ? 書 )
探 方
探 方 ) 大体 使 部分 関数名 ! 使[ )
出 WordPress ) 追 ! ) 使 部分 情報 検索 Core 中 読 ? ( !? ( !? 諦 )! 別 」 探
地道 作業
? ) WordPress 詳 )
前半 ) PHP 探 方 ? 書 )
None
? 投稿 中 書 shortcode 投稿 中 動的 出力!? (
決 ? 文章 出力 ( ) 登場 ? (要 子 (! ) 動的 出力 」 ) 決 ? 文章 再利用可能 )
投稿 出力 )前 」 囲 置換 ) 置換 )内容 関数
作? add shortcode 登録 引数 渡 同 引数 変,) 処理 変, ) )
重要 出力 )前
出力 )前 投稿 内容 表示 )時 処理 )[ 出力 準備
) 」 実行 ) 関数 中 echo 内容 return )
echo return 例, HTML 出力 内容 突?込 ! 負
echo return ikaga ) 書 内容 突?込 ! 負
echo return ! 内容 突?込 ! 負 echo ) 場
出力 )
変数 入 ( ) 面倒
私 ) 一旦 出力 「 出力内容 取得 最後 「 返
内容 突?込 ! 負
出力 「 制御関数 調 ob start ob get clean
引数 渡 方
座談会!懇親会 時間 ? (
None
前半 ) PHP 探 方 ? 書 )
? 使? 作?
作) WordPress管理画面 何! 掲出 掲出 ) 数 増 )
追加
( , )
( , )
wordpress ) ) 大文字小文字 関係 )! 新 記事 見) WordPress
常 進化 続 ) 情報 古 Google検索 期間指定 年以内 指定 Good
! 見
! 見 ( ( 追加 ) wp add dashboard widget
関数 使 実行 」 wp dashboard setup 設定 ) 良
使 良 関数 見 WordPress Codex日本語版 WordPress org Code Reference
見 ) (理解 深 (
書 )
書 ) wp add dashboard widget
書 ) wp add dashboard widget wp dashboard setup
結果
( , 追加
複数追加出来)
! 」 勝負 ( ( 腕 見 所
同 処理 複数回書 OK
出来) ( 同 度 書!
処理 複数個出 ) )
処理 複数個出 ) ) 小 ! 実際
? 思 感
方法 ) HTML 別 「」 用意 「」 読 込 配列
部分 JSON 「」 ! 用意 読 込
方法 ) HTML 別 「」 用意 「」 読 込 配列
部分 JSON 「」 ! 用意 読 込 方法
[(
? 複雑 思
色々知
? ) 少 出来) (
今日! functions php ) 」 始
私
次 一歩進 」 角田 一平 ! 送(
前 一旦CM
今日 CM
None