Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Developing for WordPress with PHP

Developing for WordPress with PHP

In the WordPress community code quality isn’t always the most important thing. Best practices are often ignored, as backwards compatibility is the number one priority. Modules are tightly coupled and at times hard to debug.

How do you keep your sanity as a developer if you know how to program PHP the right way? In this presentation Anton will show you what the result is of these priorities in the WordPress community and how he develops without going insane.

B3acbabfdd208ecbf950d864b86fe968?s=128

Anton Timmermans

November 18, 2015
Tweet

More Decks by Anton Timmermans

Other Decks in Technology

Transcript

  1. Developing for WordPress with PHP

  2. None
  3. None
  4. None
  5. None
  6. Variaties • Plugin conflict • PHP versie • PHP extensies

  7. Verder onderzoek

  8. Call to a member function get() on a non-object in

    /wp-includes/query.php on line 28
  9. None
  10. define( ‘WP_DEBUG’, true );

  11. None
  12. None
  13. add_action( ‘init’, … ); do_action( ‘init’ ); apply_filters( ‘the_content’ );

    add_filter( ‘the_content’, ‘…’ );
  14. Uitdagingen • Hook volgorde • Global state • Hook prioriteit

  15. Case closed

  16. new WP_Query()

  17. Reflectie

  18. Tooling

  19. None
  20. • PHPUnit • PHPCS • PHPMD • JSHint • JSCS

    • JS validate
  21. Wat heb je wel • Autoloading • Interfaces • Composer

    (met wat moeite)
  22. None
  23. Wij zijn altijd opzoek naar goede developers

  24. @atimmer10 Anton Timmermans atimmer

  25. Vragen?