Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: deleted_post

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
1012
1013           foreach ( (array) $children as $child )
1014                clean_page_cache($child->ID);
1015
1016           $wp_rewrite->flush_rules();
1017      } else {
1018           clean_post_cache($postid);
1019      }
1020
1021      do_action('deleted_post', $postid);
1022
1023      return $post;
1024 }
1025
1026 /**
1027  * wp_get_post_categories() - Retrieve the list of categories for a post
1028  *
1029  * Compatibility layer for themes and plugins. Also an easy layer of abstraction
1030  * away from the complexity of the taxonomy layer.