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
1075
1076           foreach ( (array) $children as $child )
1077                clean_page_cache($child->ID);
1078
1079           $wp_rewrite->flush_rules();
1080      } else {
1081           clean_post_cache($postid);
1082      }
1083
1084      do_action('deleted_post', $postid);
1085
1086      return $post;
1087 }
1088
1089 /**
1090  * wp_get_post_categories() - Retrieve the list of categories for a post
1091  *
1092  * Compatibility layer for themes and plugins. Also an easy layer of abstraction
1093  * away from the complexity of the taxonomy layer.