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
使用AI,學習如何編寫WordPress插件經驗分享
Search
Hong Kong WordPress Meetup
September 23, 2024
0
13
使用AI,學習如何編寫WordPress插件經驗分享
作為一名非程序員的IT從業者,在這次活動中,Nicholas將會分享最近嘗試利用Cursor AI,學習如何由0開始,編寫自己的WordPress插件。
Hong Kong WordPress Meetup
September 23, 2024
Tweet
Share
More Decks by Hong Kong WordPress Meetup
See All by Hong Kong WordPress Meetup
Hong Kong WordPress Meetup #81
hkwp
0
8
Hong Kong WordPress Meetup #80
hkwp
0
26
由零開始,推出你的第一個 WordPress 插件
hkwp
0
30
WordPress Meetup #19: 利用 Microthemer 修飾你的網站
hkwp
0
15
HK WordPress Meetup #77: 如何加強 WordPress 網站的安全性以保護您的網站和使用者
hkwp
0
22
WordPress Meetup #42: 開發和使用WordPress 網絡應用程序作為調查工具
hkwp
0
13
HK WordPress Meetup #75: 經驗分享:使用Pods框架及WPUF管理自定義文章類型
hkwp
0
16
Featured
See All Featured
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
44
2.2k
Keith and Marios Guide to Fast Websites
keithpitt
409
22k
Fontdeck: Realign not Redesign
paulrobertlloyd
82
5.2k
A Philosophy of Restraint
colly
203
16k
Code Reviewing Like a Champion
maltzj
520
39k
How to Think Like a Performance Engineer
csswizardry
20
1.1k
Product Roadmaps are Hard
iamctodd
PRO
49
11k
The Art of Programming - Codeland 2020
erikaheidi
52
13k
Building Flexible Design Systems
yeseniaperezcruz
327
38k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
131
33k
Fireside Chat
paigeccino
34
3k
10 Git Anti Patterns You Should be Aware of
lemiorhan
655
59k
Transcript
使用AI,學習如何編寫WordPress插件經驗分享 Experience Sharing on Learning to Write WordPress Plugins Using
AI Nicholas Yau https://nicholas.hk
Introduction to WordPress Plugins • What is a WordPress plugin?
• Customize and extend functionality of WordPress sites
Empowering Non-Programmers Non-programmers can create plugins to meet specific needs
01 No coding experience required with simple examples 02 Resources and tools available for guidance 03
Basic Structure of a WordPress Plugin File Structure: Plugin folder
Main plugin file Key Components: Plugin header Settings page for user input Shortcode for displaying content
Demo: Creating a Simple Greeting Plugin Objective: Allow users to
input a greeting message Use shortcode to display it on the front end
Create Plugin File Structure Create a folder: greeting-plugin Create main
file: greeting-plugin.php Visual: Folder structure diagram
Explain the requirements in Cursor
Create the page greeting-plugin.php by Cursor AI
Apply the changes to the file automatically by clicking “Accept”
Upload the plugin and activate it
Input text in the Greeting Plugin Settings page
Step 6 - Usage Use the shortcode [greeting] in posts/pages.
Display the greeting message set in the admin settings.
Using AI Tools to Simplify Development AI TOOLS FOR CODE
GENERATION (E.G., CHATGPT, GITHUB COPILOT) EXAMPLES OF HOW AI CAN ASSIST WITH PLUGIN DEVELOPMENT REDUCING THE LEARNING CURVE FOR NON- PROGRAMMERS
Conclusion Recap of how non-programmers can create plugins Encouragement to
experiment with simple plugins Resources for further learning
Q&A Session • Questions & Answers • Feel free to
ask any questions!