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.
Line | Code |
---|---|
722 | $post_status = 'draft'; |
723 | $comment_status = get_settings('default_comment_status'); |
724 | $ping_status = get_settings('default_ping_status'); |
725 | $post_pingback = get_settings('default_pingback_flag'); |
726 | $default_post_cat = get_settings('default_category'); |
727 |
|
728 | $content = wp_specialchars($content); |
729 | $content = apply_filters('default_content', $content); |
730 | $edited_post_title = apply_filters('default_title', $edited_post_title); |
731 | $excerpt = apply_filters('default_excerpt', $excerpt); |
732 |
|
733 | if (get_settings('advanced_edit')) { |
734 | include('edit-form-advanced.php'); |
735 | } else { |
736 | include('edit-form.php'); |
737 | } |
738 | ?> |
739 | <div class="wrap"> |
740 | <?php _e('<h3>WordPress bookmarklet</h3> |