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 |
|---|---|
| 38 | } |
| 39 | |
| 40 | /** |
| 41 | * Toggle site update services configuration functionality. |
| 42 | * |
| 43 | * @since 3.0.0 |
| 44 | * |
| 45 | * @param bool True or false, based on whether update services configuration is enabled or not. |
| 46 | */ |
| 47 | if ( apply_filters( 'enable_update_services_configuration', true ) ) { |
| 48 | get_current_screen()->add_help_tab( array( |
| 49 | 'id' => 'options-services', |
| 50 | 'title' => __( 'Update Services' ), |
| 51 | 'content' => '<p>' . __( 'If desired, WordPress will automatically alert various services of your new posts.' ) . '</p>', |
| 52 | ) ); |
| 53 | } |
| 54 | |
| 55 | get_current_screen()->set_help_sidebar( |
| 56 | '<p><strong>' . __('For more information:') . '</strong></p>' . |
| Line | Code |
| 162 | ?> |
| 163 | </td> |
| 164 | </tr> |
| 165 | <?php do_settings_fields('writing', 'post_via_email'); ?> |
| 166 | </table> |
| 167 | <?php } ?> |
| 168 | |
| 169 | <?php |
| 170 | /** This filter is documented in wp-admin/options-writing.php */ |
| 171 | if ( apply_filters( 'enable_update_services_configuration', true ) ) { |
| 172 | ?> |
| 173 | <h3 class="title"><?php _e('Update Services') ?></h3> |
| 174 | |
| 175 | <?php if ( 1 == get_option('blog_public') ) : ?> |
| 176 | |
| 177 | <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> |
| 178 | |
| 179 | <textarea name="ping_sites" id="ping_sites" class="large-text code" rows="3"><?php echo esc_textarea( get_option('ping_sites') ); ?></textarea> |
| 180 | |