Ce diaporama a bien été signalé.
Nous utilisons votre profil LinkedIn et vos données d’activité pour vous proposer des publicités personnalisées et pertinentes. Vous pouvez changer vos préférences de publicités à tout moment.

0

Partager

Télécharger pour lire hors ligne

Building a developer friendly plugin - WordCamp Chicago 2017

Télécharger pour lire hors ligne

With nearly fifty thousand WordPress plugins available, there’s one for just about everything. However, sometimes a plugin doesn’t do exactly what you need. Working with existing plugins can be a frustrating experience when the developer has not considered how other developers might use it on a client’s web site. In this session I’ll share some common roadblocks working with plugins, how you can make your plugin extensible, and the benefits of building a developer-friendly plugin.

Livres associés

Gratuit avec un essai de 30 jours de Scribd

Tout voir
  • Soyez le premier à aimer ceci

Building a developer friendly plugin - WordCamp Chicago 2017

  1. 1. @mikehale#wcchi Building a Developer Friendly WordPress Plugin WordCamp Chicago 2017
  2. 2. Why?
  3. 3. Contribute to WordPress
  4. 4. Futureproof Code
  5. 5. Support Requests
  6. 6. Ratings & Reviews
  7. 7. 10 Ways to Build a Developer Friendly WordPress Plugin
  8. 8. 1. GitHub / GitLab Issue Management Pull Requests
  9. 9. 2. Add Hooks Actions Filters
  10. 10. Actions Run code at a specific time or event add_action() do_action()
  11. 11. Filters Modify data being returned add_filter() apply_filters()
  12. 12. 3. Coding Standards WordPress PHP Coding Standards Plugin Handbook PHPDocs PHPCS (Code sniffer) PHP PSR-x Standards
  13. 13. WordPress Standards
  14. 14. Plugin Handbook
  15. 15. PHPDocs
  16. 16. Code Sniffer (PHPCS)
  17. 17. 4. OOP Extends Implements Abstracts Avoid method name collisions Organization and Reuse
  18. 18. 5. Develop with Debug
  19. 19. 6. Translations (18n) .po & .pot files
  20. 20. 7. Unit Testing
  21. 21. 8. get_by … with a little help from my friends. ID, Title, Slug, Meta
  22. 22. 9. Deprecate Methods _deprecated_function() Bump Minor Version
  23. 23. 10. Semantic Versioning Major.Minor.Patch (4.7.2)
  24. 24. Major Version Major or Breaking Changes
  25. 25. Minor Version New Functionality (Backwards Compatible)
  26. 26. Patch Version Bug Fixes (Backwards Compatible)
  27. 27. Recap ● GitHub/Gitlab ● Add Actions and Filters ● Coding standards ● OOP ● Develop with Debug ● Make it Translatable ● Unit Testing ● get_by methods ● Deprecate methods ● Semantic Versioning
  28. 28. About Me Mike Hale Developer Rainmaker Digital @MikeHale www.mikehale.me

With nearly fifty thousand WordPress plugins available, there’s one for just about everything. However, sometimes a plugin doesn’t do exactly what you need. Working with existing plugins can be a frustrating experience when the developer has not considered how other developers might use it on a client’s web site. In this session I’ll share some common roadblocks working with plugins, how you can make your plugin extensible, and the benefits of building a developer-friendly plugin.

Vues

Nombre de vues

446

Sur Slideshare

0

À partir des intégrations

0

Nombre d'intégrations

16

Actions

Téléchargements

4

Partages

0

Commentaires

0

Mentions J'aime

0

×