Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: default_excerpt

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
144           $post_excerpt = '';
145
146      $post->post_status = 'draft';
147      $post->comment_status = get_option( 'default_comment_status' );
148      $post->ping_status = get_option( 'default_ping_status' );
149      $post->post_pingback = get_option( 'default_pingback_flag' );
150      $post->post_category = get_option( 'default_category' );
151      $post->post_content = apply_filters( 'default_content', $post_content);
152      $post->post_title = apply_filters( 'default_title', $post_title );
153      $post->post_excerpt = apply_filters( 'default_excerpt', $post_excerpt);
154      $post->page_template = 'default';
155      $post->post_parent = 0;
156      $post->menu_order = 0;
157
158      return $post;
159 }
160
161 // Get an existing post and format it for editing.
162 function get_post_to_edit( $id ) {