WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
This hook occurs 2 times in this file.
| Line | Code |
|---|---|
| 986 | break; |
| 987 | default: |
| 988 | return(new IXR_Error(401, __("Invalid post type."))); |
| 989 | break; |
| 990 | } |
| 991 | $post_author = $content_struct["wp_author_id"]; |
| 992 | } |
| 993 | |
| 994 | $post_title = $content_struct['title']; |
| 995 | $post_content = apply_filters( 'content_save_pre', $content_struct['description'] ); |
| 996 | $post_status = $publish ? 'publish' : 'draft'; |
| 997 | |
| 998 | $post_excerpt = $content_struct['mt_excerpt']; |
| 999 | $post_more = $content_struct['mt_text_more']; |
| 1000 | |
| 1001 | if(isset($content_struct["mt_allow_comments"])) { |
| 1002 | switch((int) $content_struct["mt_allow_comments"]) { |
| 1003 | case 0: |
| 1004 | $comment_status = "closed"; |
| Line | Code |
| 1184 | $ping_status = "closed"; |
| 1185 | break; |
| 1186 | case 1: |
| 1187 | $ping_status = "open"; |
| 1188 | break; |
| 1189 | } |
| 1190 | } |
| 1191 | |
| 1192 | $post_title = $content_struct['title']; |
| 1193 | $post_content = apply_filters( 'content_save_pre', $content_struct['description'] ); |
| 1194 | $catnames = $content_struct['categories']; |
| 1195 | |
| 1196 | $post_category = array(); |
| 1197 | |
| 1198 | if (is_array($catnames)) { |
| 1199 | foreach ($catnames as $cat) { |
| 1200 | $post_category[] = get_cat_ID($cat); |
| 1201 | } |
| 1202 | } |