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
22
使用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 #87
hkwp
0
10
Leveraging Less-Known WordPress Plugins
hkwp
0
5
差點成為炮灰的遺珠 - WP Multilang
hkwp
0
5
Hong Kong WordPress Meetup #86
hkwp
0
7
由Top Sales到WP Architect的設計規劃分享
hkwp
0
11
Hong Kong WordPress Meetup #85
hkwp
0
14
WordCamp Asia 2025 Experience
hkwp
0
11
跨境銷售的機會與挑戰
hkwp
0
12
Hong Kong WordPress Meetup #84
hkwp
0
13
Featured
See All Featured
Speed Design
sergeychernyshev
32
1k
Unsuck your backbone
ammeep
671
58k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
44
2.4k
jQuery: Nuts, Bolts and Bling
dougneiner
63
7.8k
Art, The Web, and Tiny UX
lynnandtonic
299
21k
Statistics for Hackers
jakevdp
799
220k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
15
1.5k
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
2.9k
A Modern Web Designer's Workflow
chriscoyier
694
190k
Building Adaptive Systems
keathley
43
2.6k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
7
700
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!