Suche senden
Hochladen
How To Write a WordPress Plugin
•
Als KEY, PDF herunterladen
•
2 gefällt mir
•
656 views
Andy Stratton
Folgen
Quick and basic presentation about how to get started writing WordPres
Weniger lesen
Mehr lesen
Technologie
Business
Melden
Teilen
Melden
Teilen
1 von 42
Jetzt herunterladen
Empfohlen
CSI: WordPress -- Getting Into the Guts
CSI: WordPress -- Getting Into the Guts
Dougal Campbell
The Future Of WordPress Presentation
The Future Of WordPress Presentation
Dougal Campbell
Write Your First WordPress Plugin
Write Your First WordPress Plugin
Ibrahim Abdel Fattah Mohamed
WordCamp Columbus 2011 - What's Next for WordPress
WordCamp Columbus 2011 - What's Next for WordPress
andrewnacin
WordCamp Netherlands 2012: WordPress in 2012
WordCamp Netherlands 2012: WordPress in 2012
andrewnacin
Extending Custom Post Types
Extending Custom Post Types
ryanduff
Higher Order WordPress Security
Higher Order WordPress Security
Dougal Campbell
Using composer with WordPress
Using composer with WordPress
Micah Wood
Empfohlen
CSI: WordPress -- Getting Into the Guts
CSI: WordPress -- Getting Into the Guts
Dougal Campbell
The Future Of WordPress Presentation
The Future Of WordPress Presentation
Dougal Campbell
Write Your First WordPress Plugin
Write Your First WordPress Plugin
Ibrahim Abdel Fattah Mohamed
WordCamp Columbus 2011 - What's Next for WordPress
WordCamp Columbus 2011 - What's Next for WordPress
andrewnacin
WordCamp Netherlands 2012: WordPress in 2012
WordCamp Netherlands 2012: WordPress in 2012
andrewnacin
Extending Custom Post Types
Extending Custom Post Types
ryanduff
Higher Order WordPress Security
Higher Order WordPress Security
Dougal Campbell
Using composer with WordPress
Using composer with WordPress
Micah Wood
Teaming up WordPress API with Backbone.js in Titanium
Teaming up WordPress API with Backbone.js in Titanium
Jeroen van Dijk
Bending word press to your will
Bending word press to your will
Tom Jenkins
WordPress Plugins
WordPress Plugins
OpenSource Technologies Pvt. Ltd.
Word press Plugins by WordPress Experts
Word press Plugins by WordPress Experts
Yameen Khan
Building native mobile apps with word press
Building native mobile apps with word press
Nikhil Vishnu P.V
Writing your own WordPress themes and plugins
Writing your own WordPress themes and plugins
Stephanie Wells
Creating Themes
Creating Themes
DaisyOlsen
Web development basics2
Web development basics2
Kalluri Vinay Reddy
Building the basics (WordPress Ottawa 2014)
Building the basics (WordPress Ottawa 2014)
christopherfross
WordPress Security & Backup
WordPress Security & Backup
Randy Barnes
Plug in development
Plug in development
Lucky Ali
Scout web
Scout web
cciotti3
Web scraping
Web scraping
rebekacox
5 Things You Shouldn't Do With A WordPress Plugin
5 Things You Shouldn't Do With A WordPress Plugin
Kelly Phillips
So You Want to Build and Release a Plugin? WordCamp Lancaster 2014
So You Want to Build and Release a Plugin? WordCamp Lancaster 2014
ryanduff
Using Firebug & YSlow
Using Firebug & YSlow
Brad Vernon
WordPress for beginners lesson 4 fall2015 JALC
WordPress for beginners lesson 4 fall2015 JALC
Michele Butcher-Jones
Intro to WordPress theme development
Intro to WordPress theme development
Thad Allender
doing_it_right() with WordPress
doing_it_right() with WordPress
ryanduff
Intro to jQuery - Tulsa Ruby Group
Intro to jQuery - Tulsa Ruby Group
Brad Vernon
Jumping Into WordPress Plugin Programming
Jumping Into WordPress Plugin Programming
Dougal Campbell
Creating Your First WordPress Plugin
Creating Your First WordPress Plugin
Brad Williams
Weitere ähnliche Inhalte
Was ist angesagt?
Teaming up WordPress API with Backbone.js in Titanium
Teaming up WordPress API with Backbone.js in Titanium
Jeroen van Dijk
Bending word press to your will
Bending word press to your will
Tom Jenkins
WordPress Plugins
WordPress Plugins
OpenSource Technologies Pvt. Ltd.
Word press Plugins by WordPress Experts
Word press Plugins by WordPress Experts
Yameen Khan
Building native mobile apps with word press
Building native mobile apps with word press
Nikhil Vishnu P.V
Writing your own WordPress themes and plugins
Writing your own WordPress themes and plugins
Stephanie Wells
Creating Themes
Creating Themes
DaisyOlsen
Web development basics2
Web development basics2
Kalluri Vinay Reddy
Building the basics (WordPress Ottawa 2014)
Building the basics (WordPress Ottawa 2014)
christopherfross
WordPress Security & Backup
WordPress Security & Backup
Randy Barnes
Plug in development
Plug in development
Lucky Ali
Scout web
Scout web
cciotti3
Web scraping
Web scraping
rebekacox
5 Things You Shouldn't Do With A WordPress Plugin
5 Things You Shouldn't Do With A WordPress Plugin
Kelly Phillips
So You Want to Build and Release a Plugin? WordCamp Lancaster 2014
So You Want to Build and Release a Plugin? WordCamp Lancaster 2014
ryanduff
Using Firebug & YSlow
Using Firebug & YSlow
Brad Vernon
WordPress for beginners lesson 4 fall2015 JALC
WordPress for beginners lesson 4 fall2015 JALC
Michele Butcher-Jones
Intro to WordPress theme development
Intro to WordPress theme development
Thad Allender
doing_it_right() with WordPress
doing_it_right() with WordPress
ryanduff
Intro to jQuery - Tulsa Ruby Group
Intro to jQuery - Tulsa Ruby Group
Brad Vernon
Was ist angesagt?
(20)
Teaming up WordPress API with Backbone.js in Titanium
Teaming up WordPress API with Backbone.js in Titanium
Bending word press to your will
Bending word press to your will
WordPress Plugins
WordPress Plugins
Word press Plugins by WordPress Experts
Word press Plugins by WordPress Experts
Building native mobile apps with word press
Building native mobile apps with word press
Writing your own WordPress themes and plugins
Writing your own WordPress themes and plugins
Creating Themes
Creating Themes
Web development basics2
Web development basics2
Building the basics (WordPress Ottawa 2014)
Building the basics (WordPress Ottawa 2014)
WordPress Security & Backup
WordPress Security & Backup
Plug in development
Plug in development
Scout web
Scout web
Web scraping
Web scraping
5 Things You Shouldn't Do With A WordPress Plugin
5 Things You Shouldn't Do With A WordPress Plugin
So You Want to Build and Release a Plugin? WordCamp Lancaster 2014
So You Want to Build and Release a Plugin? WordCamp Lancaster 2014
Using Firebug & YSlow
Using Firebug & YSlow
WordPress for beginners lesson 4 fall2015 JALC
WordPress for beginners lesson 4 fall2015 JALC
Intro to WordPress theme development
Intro to WordPress theme development
doing_it_right() with WordPress
doing_it_right() with WordPress
Intro to jQuery - Tulsa Ruby Group
Intro to jQuery - Tulsa Ruby Group
Ähnlich wie How To Write a WordPress Plugin
Jumping Into WordPress Plugin Programming
Jumping Into WordPress Plugin Programming
Dougal Campbell
Creating Your First WordPress Plugin
Creating Your First WordPress Plugin
Brad Williams
Intro to WordPress Plugin Development
Intro to WordPress Plugin Development
Brad Williams
Getting started with WordPress development
Getting started with WordPress development
Steve Mortiboy
Introduction to Plugin Programming, WordCamp Miami 2011
Introduction to Plugin Programming, WordCamp Miami 2011
David Carr
How to create your own WordPress plugin
How to create your own WordPress plugin
John Tighe
Write your first WordPress plugin
Write your first WordPress plugin
Anthony Montalbano
WordPress Plugin development
WordPress Plugin development
Mostafa Soufi
WordPress Plugin Basics
WordPress Plugin Basics
Amanda Giles
WordPress Structure and Best Practices
WordPress Structure and Best Practices
markparolisi
Custom Post Type - Create and Display
Custom Post Type - Create and Display
Jan Wilson
Stop Hacking WordPress, Start Working with it - Charly Leetham - WordCamp Syd...
Stop Hacking WordPress, Start Working with it - Charly Leetham - WordCamp Syd...
WordCamp Sydney
WordPress Plugin Development- Rich Media Institute Workshop
WordPress Plugin Development- Rich Media Institute Workshop
Brendan Sera-Shriar
How to Create a Custom WordPress Plugin
How to Create a Custom WordPress Plugin
Andolasoft Inc
Introduction to WordPress Hooks 2016
Introduction to WordPress Hooks 2016
Ian Wilson
Plugin development demystified 2017
Plugin development demystified 2017
ylefebvre
WordPress plugin #2
WordPress plugin #2
giwoolee
WordPress Plugin Development For Beginners
WordPress Plugin Development For Beginners
johnpbloch
Developing Plugins For WordPress
Developing Plugins For WordPress
Lester Chan
How to in WPMU: Building a blog directory & Domain Mapping
How to in WPMU: Building a blog directory & Domain Mapping
Andrea Rennick
Ähnlich wie How To Write a WordPress Plugin
(20)
Jumping Into WordPress Plugin Programming
Jumping Into WordPress Plugin Programming
Creating Your First WordPress Plugin
Creating Your First WordPress Plugin
Intro to WordPress Plugin Development
Intro to WordPress Plugin Development
Getting started with WordPress development
Getting started with WordPress development
Introduction to Plugin Programming, WordCamp Miami 2011
Introduction to Plugin Programming, WordCamp Miami 2011
How to create your own WordPress plugin
How to create your own WordPress plugin
Write your first WordPress plugin
Write your first WordPress plugin
WordPress Plugin development
WordPress Plugin development
WordPress Plugin Basics
WordPress Plugin Basics
WordPress Structure and Best Practices
WordPress Structure and Best Practices
Custom Post Type - Create and Display
Custom Post Type - Create and Display
Stop Hacking WordPress, Start Working with it - Charly Leetham - WordCamp Syd...
Stop Hacking WordPress, Start Working with it - Charly Leetham - WordCamp Syd...
WordPress Plugin Development- Rich Media Institute Workshop
WordPress Plugin Development- Rich Media Institute Workshop
How to Create a Custom WordPress Plugin
How to Create a Custom WordPress Plugin
Introduction to WordPress Hooks 2016
Introduction to WordPress Hooks 2016
Plugin development demystified 2017
Plugin development demystified 2017
WordPress plugin #2
WordPress plugin #2
WordPress Plugin Development For Beginners
WordPress Plugin Development For Beginners
Developing Plugins For WordPress
Developing Plugins For WordPress
How to in WPMU: Building a blog directory & Domain Mapping
How to in WPMU: Building a blog directory & Domain Mapping
Mehr von Andy Stratton
Advanced Custom Post Types
Advanced Custom Post Types
Andy Stratton
50 Shades of WordPress
50 Shades of WordPress
Andy Stratton
We Are WordPress
We Are WordPress
Andy Stratton
Everything is Relative: Frameworks, Plugins & SEO
Everything is Relative: Frameworks, Plugins & SEO
Andy Stratton
Accomplish It With Core: Sliders Galleries + More
Accomplish It With Core: Sliders Galleries + More
Andy Stratton
Let's Build a Custom Theme
Let's Build a Custom Theme
Andy Stratton
Accomplish It With Core: Sliders, Galleries and More
Accomplish It With Core: Sliders, Galleries and More
Andy Stratton
Diet Pills, SEO & Theme Frameworks: There are no magic bullets.
Diet Pills, SEO & Theme Frameworks: There are no magic bullets.
Andy Stratton
WordPress - Open Source Overview Presentation
WordPress - Open Source Overview Presentation
Andy Stratton
Trendsetting: Web Design and Beyond
Trendsetting: Web Design and Beyond
Andy Stratton
Mehr von Andy Stratton
(10)
Advanced Custom Post Types
Advanced Custom Post Types
50 Shades of WordPress
50 Shades of WordPress
We Are WordPress
We Are WordPress
Everything is Relative: Frameworks, Plugins & SEO
Everything is Relative: Frameworks, Plugins & SEO
Accomplish It With Core: Sliders Galleries + More
Accomplish It With Core: Sliders Galleries + More
Let's Build a Custom Theme
Let's Build a Custom Theme
Accomplish It With Core: Sliders, Galleries and More
Accomplish It With Core: Sliders, Galleries and More
Diet Pills, SEO & Theme Frameworks: There are no magic bullets.
Diet Pills, SEO & Theme Frameworks: There are no magic bullets.
WordPress - Open Source Overview Presentation
WordPress - Open Source Overview Presentation
Trendsetting: Web Design and Beyond
Trendsetting: Web Design and Beyond
Kürzlich hochgeladen
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
The Digital Insurer
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
Results
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
Delhi Call girls
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
Radu Cotescu
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
Maria Levchenko
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
debabhi2
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
The Digital Insurer
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
Enterprise Knowledge
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
sudhanshuwaghmare1
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
Igalia
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
Anna Loughnan Colquhoun
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
UK Journal
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
Gabriella Davis
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
HampshireHUG
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
Antenna Manufacturer Coco
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
apidays
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
The Digital Insurer
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
The Digital Insurer
Kürzlich hochgeladen
(20)
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
How To Write a WordPress Plugin
1.
How to Write
a WordPress Plugin Baltimore WordPress Meetup • September 19, 2011
2.
What is a
plugin? Written in PHP Adds functionality without affecting core code Plugin API
3.
Hooks: Actions &
Filters
4.
Actions Hey, WP! I’d
like to do this when you do that... Calls a function that performs an action, possibly with some data given by WP
5.
Actions add_action( $hook_name, $function
); add_action(‘wp_head’, ‘my_custom_js’); add_action(‘wp_head’, array( $some_object, ‘my_custom_js_method’) ));
6.
Actions init wp_head
save_post
7.
Filters Hey, WP! I’d
like to change a value that you’re returning/ using... Calls a function that returns a final
8.
Filters add_filter( $hook_name, $function
); add_filter(‘the_content’, ‘my_content_filter’); add_filter(‘the_content’, array( $some_object, ‘my_content_method) ));
9.
Filters the_title the_content
wp_email_from
10.
Getting Started PHP file
or folder containing PHP file Javascript, CSS, etc. /wp-content/
11.
Plugin Information <?php /* Plugin Name:
My Simple Plugin Plugin URI: http://theandystratton.com/my-plugin Description: Does something awesome. Version: 1.0 Author: theandystratton Author URI: http://theandystratton.com License: GPL2 */
12.
Info Shows in
Admin UI
13.
Don’t Just Drop
Code WordPress includes plugins while initializing Coding without hooking into actions/filters = explosion
14.
Starting to Code What
do you want to do? I want to add my personal signature to all posts.
15.
Starting to Code What
does my plugin do? Filter the content of all posts and append my signature.
16.
Some Code
Hey WP! When you’re processing standard content, call this function!
17.
Take the value
WP provides us, add my signature, give it back.
18.
It’s as easy
as that.
19.
But we can complicate
things...
20.
Archives, Listings,
etc. Oops. I mean, I only want it to add my signature to the single post, not listings/ archives.
21.
Archives, Listings,
etc. What do you want to do now? Filter the content of all posts and append my signature
22.
IF we’re on
a single post page, THEN add my signature.
23.
But we can complicate
things...
24.
Post Type Content Oops.
I have a custom post type called “Products,” and it’s adding my signature to those, too.
25.
IF we’re on
a single blog post page, THEN add my signature.
26.
27.
Getting More Advanced
28.
Using Objects
Avoid tons of prefixed functions Use a prefixed class to hold all your actions/filters
29.
Using Objects
30.
Do All Kinds
of Fun Stuff
31.
Plugins Do Way
More Custom Post Types Shortcodes Metaboxes and metadata management
32.
Plugins Do Way
More Settings Pages Settings Fields Incorporate Internationalization
33.
Plugins Do Way
More Redirect requests Modify Rewrite Rules Emulate CRON jobs (wp- cron.php)
34.
Going Public
35.
Get in the
Repository Submit your plugin code http://wordpress.org/extend/plugins/ about/ http://wordpress.org/extend/plugins/ about/faq/
36.
Get in the
Repository Readme.txt http://wordpress.org/extend/plugins/ about/readme.txt
37.
Get in the
Repository Subversion access & management Support URL? Update within 2 years or hide
38.
More Resources “Writing
a Plugin” http://codex.wordpress.org/ Writing_a_Plugin “WordPress Coding Standards” http://codex.wordpress.org/ WordPress_Coding_Standards
39.
Google Works Great
40.
Keep It Simple
Stupid.
41.
Code is poetry.
42.
Thanks.
Hinweis der Redaktion
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
Jetzt herunterladen