Weitere ähnliche Inhalte Ähnlich wie WordPress plugin development (20) Kürzlich hochgeladen (20) WordPress plugin development2. Luc De Brouwer
Webdeveloper who loves WordPress, Magento,
PHP, MySQL, HTML, CSS, jQuery, good food and
Nine Inch Nails.
• lucdebrouwer.nl
• hello@lucdebrouwer.nl
• linkedin.com/in/lucdebrouwer
• twitter.com/ldebrouwer
9. Turn debugging on
Your users will thank you for it.
Tip: Use Debug Bar and Debug Bar Console. It’s like Firebug for WordPress!
14. Possible hooks
Filter functions Action functions
has_filter() has_action()
add_filter() add_action()
apply_filters() do_action()
current_filter() do_action_ref_array()
merge_filters() did_action()
remove_filter() remove_action()
remove_all_filters() remove_all_actions()
18. Do not reinvent the wheel!
WordPress has an API for almost anything. Built-in will most likely run better than bolted-on.
19. Storing preferences
You’ve got plenty of options!
add_option( ‘WordCampNL’, ‘FTW’ );
get_option( ‘WordCampNL’);
update_option( ‘WordCampNL’, ’#WCNL12 is awesome’ );
21. There’s an API for that!
Making HTTP requests, performing filesystem tasks, unzipping files, etc..
26. Publish your plugin to the
WordPress plugin repository
Free feedback and a bigger platform for your work!
28. Set up a support plan!
Will you give support? If so, when? Will you offer paid support?
31. Consult the code
By reading the core I learned more in 2 hours then I could have learned in a 2 day course.
34. Want to contact me or ask questions?
• lucdebrouwer.nl
• hello@lucdebrouwer.nl
• linkedin.com/in/lucdebrouwer
• twitter.com/ldebrouwer