Created
November 10, 2017 19:58
-
-
Save Sstobo/2660749890729425f8cc6c8464491e90 to your computer and use it in GitHub Desktop.
[WP filters and actions] . #php #wp #hooks #filters #actions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_setup_theme . -order of initialization] | |
| add_after | |
| after_switch_theme . (action that happens IF a theme gets switched) | |
| body_class | |
| ** excerpt_length - change length of custom excerpt (add to loop) | |
| login_head / login_header_url - head is css, header is more htmly | |
| next / post links attributes - -append to next/prev post links | |
| **** pre_get_posts action to get content- how many posts to display / where to display? | |
| Query = asking database for something | |
| post-updated-messages - message given for updated post / update the array of confirm / delete ect messages for post updating | |
| save-post . - action hook (save data, send email, - | |
| template-redirect . - executes before wp determines page to load . ie: wont let an unlogged user into shop | |
| mce-buttons . mce-init . - add/subtract styles from the wizzywig (clients interface) | |
| transition-post-status . - | |
| ***** wp-enque-scripts - add additional scripts | |
| wp-head/footer - actions, tie into enque-scripts, | |
| the-content | |
| stylesheet-url - apply filter to stylesheet / add a new stylesheet to whatever you hooked | |
| publish_post - action when someone publishes a post |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment