Contenu connexe Similaire à Modular plugins (20) Modular plugins11. Example 3:
any plugin that has components that can be
changed by a theme or other plugins
-
even tiny components
18. but not all are
most plugins are not modular
and cannot be modified
19. but not all are
most plugins are not modular
and cannot be modified
-
not without changing core code
21. it is a choice
plugin developers must choose
to make their plugins modular
23. the key to modularity
using core WordPress methods
24. the key to modularity
using core WordPress methods
add_action()
25. the key to modularity
using core WordPress methods
add_action()
do_action()
26. the key to modularity
using core WordPress methods
add_action()
do_action()
add_filter()
27. the key to modularity
using core WordPress methods
add_action()
do_action()
add_filter()
apply_filters()
62. make developers happy
the community matters
help the community by writing extensible code
others will say nice things about you
64. Ryan Imel
“I think the true measure of a quality theme
or plugin is how well it works with other
plugins and themes - - both those that
already exist and those that haven’t been
made yet.”
67. WordPress is modular
how do you think plugins work?
-
by using methods like those we just looked at
69. build it like WordPress
build your plugins like you were building
WordPress itself
Notes de l'éditeur \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n