-
step by step
- code header
-
hooks
- WP will call functions within the plugin
-
filters
- functions WP passes data through
prior to passing data to DB or browser, etc
-
admin options
- add_menu_page
- add_submenu_page
-
hooks
- wp checks to see if any plugins have registered functions to run at certain times
-
filter hooks
- ie the_title - relating to page title
-
launched to modify data before
- writing to db
- sending to browser
- plugin specifies that one or more of it's functions is called at these times
-
action hooks
- ie wp_footer
- launched by wp at certain points during execution
- plugin specifies that one or more of it's functions is called at these points
-
template tags
-
access from within theme
- ie menubar?
-
plugin data
-
WP option mechansim
- small amounts of rarely changed data
- name, value pairs
- add_option
- get_option
- update_option
-
values
- strings
- arrays
- objects
- post meta
- new db table
-
output scripts & style
- wp_enqueue_script()
- wp_enqueue_style()
- global variables of WP