Upload
sh-shanker
View
33
Download
4
Embed Size (px)
Citation preview
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
Why you shouldmake 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
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 lw 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
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
What is add-on?
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
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 abilitiesUsually cannot be run independently
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
Making iPhone Cover
iPhone 7 PlusHeight: 6.23 inches (158.2 mm)Width: 3.07 inches (77.9 mm)Depth:0.29 inch (7.3 mm)
iPhone 7Height: 5.44 inches (138.3 mm)Width: 2.64 inches (67.1 mm)Depth:0.28 inch (7.1 mm)
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
What should you know before making add-on?
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
Know the Purpose of your add-on.Feasibility
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
Don't Forget About Compatibility.
Compatibility
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
It Should be the "Sun" in Your Product "Universe".Capability
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
Best Practices and Patterns
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
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
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
Readability Reliability
Re-usability Flexibility
Extensibility
For coders
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
Floating Minicart
What I have learned from making add-on of WooCommerce
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.
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
•Check if WooCommerce is active •Splitting code snippets into backend module and frontend module.
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
Better Management
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
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
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
•Display minicart information wherever you want.“add_to_cart_fragments”
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
What is better than that?
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
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
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
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
Easy to activate, deactivate, edit and migrate add-on functionality.
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
Make it as yet another add-on.
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
It's your.
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
Thank you