Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

WordPress plugin development

1,943 views

Published on

WordPress plugin development, WordCamp 2015 Presentation.

Published in: Software
  • Be the first to comment

WordPress plugin development

  1. 1. Plugin Development A peek into the world of WordPress plugin development Rakesh Lawaju Abiral Neupane Regan Khadgi WordCamp Nepal 2015 rakeshlawaju@gmail.com abiral.neupane@gmail.com regan.khadgi1@gmail.com
  2. 2. WordPress plugin & it’s usages? WordPress plugins are bits of software that can be uploaded to extend and expand the functionality of your WordPress site. - Register post type & taxonomy - Shortcodes - Ecommerce feature - Sliders and gallery - and many more
  3. 3. Let’s start Draw roadmap Think outside the box Get a unique name Files and folder structure Coding standard Custom tables? Don’t forget about security Extensibility Translation ready
  4. 4. Draw roadmap Failing to plan is planning to fail. Images Designed by Freepik
  5. 5. Think outside the box Give user some unique feature because there are almost 50000 plugins in WordPress.org
  6. 6. Get a unique name Because the name matters.
  7. 7. Files and folder structure Keep it simple, keep it clean A plugin can a single .php file or it can be a folder with its main file and other additional required files and folder
  8. 8. Coding standard There are some rules, it's good to follow. - Single and Double Quotes - Indentation - Brace Style - No Shorthand PHP Tags - Space Usage https://codex.wordpress.org/WordPress_Coding_Standards
  9. 9. Custom tables? Think before you add custom tables. Try to use default WordPress database table, as it might be enough to manage your data. So that you won't have to create extra methods to manage data.
  10. 10. Don’t forget about security - Validating and sanitizing is must when user submits data to WordPress, data is imported from an external feed, or data comes into WordPress - To prevent issues like Cross-site scripting (XSS) make sure that output are escaped like post title, post meta value, or some other data from the database - Prevent an unauthorized person from changing your plugin’s settings or performing actions they are not authorized to perform. WordPress offers two ways: nonces and capability checks. Image from https://pixabay.com/p-538715/
  11. 11. Extensibility Plugin should allow developers to easily tie their own code.
  12. 12. Translation ready Don't lose your potential user
  13. 13. How you are offering your plugin? After you have successfully developed a plugin it can be offered in many ways to the users. Some of them are: - Free - Freemium - Premium
  14. 14. The sky's the limit and let’s give back to community
  15. 15. Hope you found it useful Thank you!

×