Soumettre la recherche
Mettre en ligne
How To Write a WordPress Plugin
•
Télécharger en tant que KEY, PDF
•
2 j'aime
•
656 vues
Andy Stratton
Suivre
Quick and basic presentation about how to get started writing WordPres
Lire moins
Lire la suite
Technologie
Business
Signaler
Partager
Signaler
Partager
1 sur 42
Télécharger maintenant
Recommandé
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
Recommandé
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
Contenu connexe
Tendances
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
Tendances
(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
Similaire à 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
Similaire à 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
Plus de 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
Plus de 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
Dernier
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
NavinnSomaal
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
BkGupta21
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
Kalema Edgar
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
Alfredo García Lavilla
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
Sergiu Bodiu
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
MounikaPolabathina
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
Curtis Poe
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
LoriGlavin3
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
Commit University
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
gvaughan
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
Alex Barbosa Coqueiro
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
Fwdays
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
Dilum Bandara
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
BookNet Canada
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
LoriGlavin3
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
LoriGlavin3
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
Alan Dix
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
Florian Wilhelm
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
BookNet Canada
Dernier
(20)
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 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.
Notes de l'éditeur
\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
Télécharger maintenant