These are the 際際滷s from WordCamp Ahmedabad 2017, In this talk, I covered about the basics of the plugin. How plugins are the key component of WordPress Ecosystem. How Plugins works, Things you should know before writing your first plugin.WordPress way of writing PHP code and all about Plugin Development.
Demo Site used: http://jcijamnagar.com/launch/?curtain_ceremony=true
WP Curtain Raiser Plugin: https://wordpress.org/plugins/wp-curtain-raiser/
4. What is a Plugin?
Plugin is package of code that extend the core functionality of WordPress.
5. How Plugin Works?
Hooks are a way for one piece of code to interact/modify another piece
of code.
Two Types of Hooks : Actions, Filters
6. How Plugin Works?
Actions allow you to add data or change how WordPress operates
Actions = Do Something
Details: https://codex.wordpress.org/Plugin_API/Action_Reference
7. How Plugin Works?
Filters give you the ability to change data during the execution of
WordPress.
Filters = Transform
Details: https://codex.wordpress.org/Plugin_API/Filter_Reference
8. How to create a Plugin
What will plugin do?
Make a Plan
Follow Plugin Development recommendation
19. Best Practices
Find Unique Name for your Plugin
Setup a Plugin Prefix (can be your brand name)
Use Proper constants and functions to detect paths to Plugin files.
Keep your code readable & well documented.
20. Various API and Components
Shortcodes, Widgets, Menus
HTTP API, Options API, Settings API, Transient API, Rewrite API
Custom Post Types, Taxonomies, meta boxes, page templates
21. Some Plugins by People in this Camp
Awesome Studio
WordCamp Dashboard Widget
Custom CSS For WordPress
Page Visit Counter
Advanced WP Testimonials
Blogger to WordPress
Give Donation Plugin
Documentor
WP Curtain Raiser
Pirate Forms