Is there a save_post hook for custom post types?

the hook is the same save_post just make sure its your post type ex: add_action(‘save_post’,’save_post_callback’); function save_post_callback($post_id){ global $post; if ($post->post_type != ‘MY_CUSTOM_POST_TYPE_NAME’){ return; } //if you get here then it’s your post type so do your thing…. }

Where can I find a list of WordPress hooks?

@Arlen: As Keith S points out Adam Brown’s List of Hooks is the defacto resource of hooks for WordPress. However, it’s not perfect: It doesn’t show the hooks in order of when they are called, It doesn’t provide file name or line number where invoked, It doesn’t provide a number of arguments passed, It’s not … Read more

How to get WordPress’ hooks/actions run sequence?

“Data! Data! Data!” he cried impatiently. “I can’t make bricks without clay.” Sherlock Holmes – The Adventure of the Copper Beeches So let’s gather some real data from a vanilla WordPress 5.7.2 install and the TwentyTwelve theme activated with only a single Text widget. For the home page, the following do_action / do_action_ref_array calls are … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)