WordPress Kathmandu, Nepal Dec. 2016 Meetup.
Why you should make a product add-on?
Shiva Shanker Bhatta
Team Lead and Sr. WordPress Developer
Web Experts Nepal
WordPress.org ID: shivashankerbhatta
Twitter: sweekarshahn
Scanning the Internet for External Cloud Exposures via SSL Certs
Why you should make a product add-on?
1. Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
Why you should
make a product add-on?
W o r d P r e s s K a t h m a n d u , N e p a l D e c e m b e r 2 0 1 6 M e e t u p
2. Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
Shiva Shanker BhattaT e a m L e a d a n d S r . W o r d P r e s s D e v e l o p e r
W e b E x p e r t s N e p a l
w o r d p r e s s . o r g / s h i v a s h a n k e r b h a t t a
@ s w e e k a r s h a h n
3. Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
What is add-on?
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
4. Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
Any third-party software program or script
Added to a program that enhances the functionality
Giving it additional features and abilities
Usually cannot be run independently
9. Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
It Should be the "Sun" in Your Product "Universe".
Capability
10. Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
Best Practices and Patterns
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
11. Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
Do your research
If you didn't make it, don't edit it!
Learn to create child themes
Learn to create site-specific plugins
For site builders
13. Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
Floating Minicart
What I have learned from making add-on of
WooCommerce
14. Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
•Nomenclature
•Basic rules on making plugin: Add-on as a plugin what
information I should have to include.
15. Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
•Check if WooCommerce is active
•Splitting code snippets into backend module and frontend module.
17. Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
•Distinct file.
•Backend compatible script, styling and hook.
•WooCommerce general setting hook structure.
•Setting options and abilities based on WooCommerce Native
approaches.
Backend
18. Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
•Definitely, Distinct file and compatible scripts.
•What exactly WooCommerce minicart template includes?
•Which WooCommerce hook is dealing with minicart.
Frontend
19. Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
•Display minicart information wherever you want.
“add_to_cart_fragments”
20. Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
What is better than that?
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
21. Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
It is better than writing all of above codes and
clauses on functions.php.
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
22. Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
In this case, its even better than including the snippet
upon the theme folder.
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016