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 |
|---|---|
| 30 | |
| 31 | if ( apply_filters( 'enable_post_by_email_configuration', true ) ) { |
| 32 | get_current_screen()->add_help_tab( array( |
| 33 | 'id' => 'options-postemail', |
| 34 | 'title' => __( 'Post Via Email' ), |
| 35 | 'content' => '<p>' . __( 'Post via email settings allow you to send your WordPress install an email with the content of your post. You must set up a secret e-mail account with POP3 access to use this, and any mail received at this address will be posted, so it’s a good idea to keep this address very secret.' ) . '</p>', |
| 36 | ) ); |
| 37 | } |
| 38 | |
| 39 | if ( apply_filters( 'enable_update_services_configuration', true ) ) { |
| 40 | get_current_screen()->add_help_tab( array( |
| 41 | 'id' => 'options-services', |
| 42 | 'title' => __( 'Update Services' ), |
| 43 | 'content' => '<p>' . __( 'If desired, WordPress will automatically alert various services of your new posts.' ) . '</p>', |
| 44 | ) ); |
| 45 | } |
| 46 | |
| 47 | get_current_screen()->set_help_sidebar( |
| 48 | '<p><strong>' . __('For more information:') . '</strong></p>' . |
| Line | Code |
| 152 | <?php |
| 153 | wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'default_email_category', 'orderby' => 'name', 'selected' => get_option('default_email_category'), 'hierarchical' => true)); |
| 154 | ?> |
| 155 | </td> |
| 156 | </tr> |
| 157 | <?php do_settings_fields('writing', 'post_via_email'); ?> |
| 158 | </table> |
| 159 | <?php } ?> |
| 160 | |
| 161 | <?php if ( apply_filters( 'enable_update_services_configuration', true ) ) { ?> |
| 162 | <h3><?php _e('Update Services') ?></h3> |
| 163 | |
| 164 | <?php if ( 1 == get_option('blog_public') ) : ?> |
| 165 | |
| 166 | <p><label for="ping_sites"><?php _e('When you publish a new post, WordPress automatically notifies the following site update services. For more about this, see <a href="http://codex.wordpress.org/Update_Services">Update Services</a> on the Codex. Separate multiple service <abbr title="Universal Resource Locator">URL</abbr>s with line breaks.') ?></label></p> |
| 167 | |
| 168 | <textarea name="ping_sites" id="ping_sites" class="large-text code" rows="3"><?php echo esc_textarea( get_option('ping_sites') ); ?></textarea> |
| 169 | |
| 170 | <?php else : ?> |