Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: enable_update_services_configuration

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

This hook occurs 2 times in this file.

Line Code
31           array(
32                'id'      => 'options-postemail',
33                'title'   => __( 'Post Via Email' ),
34                'content' => '<p>' . __( 'Post via email settings allow you to send your WordPress installation an email with the content of your post. You must set up a secret email account with POP3 access to use this, and any mail received at this address will be posted, so it&#8217;s a good idea to keep this address very secret.' ) . '</p>',
35           )
36      );
37 }
38
39 /** This filter is documented in wp-admin/options-writing.php */
40 if ( apply_filters( 'enable_update_services_configuration', true ) ) {
41      get_current_screen()->add_help_tab(
42           array(
43                'id'      => 'options-services',
44                'title'   => __( 'Update Services' ),
45                'content' => '<p>' . __( 'If desired, WordPress will automatically alert various services of your new posts.' ) . '</p>',
46           )
47      );
48 }
49
 
Line Code
190
191 <?php
192 /**
193  * Filters whether to enable the Update Services section in the Writing settings screen.
194  *
195  * @since 3.0.0
196  *
197  * @param bool $enable Whether to enable the Update Services settings area. Default true.
198  */
199 if ( apply_filters( 'enable_update_services_configuration', true ) ) {
200      ?>
201 <h2 class="title"><?php _e( 'Update Services' ); ?></h2>
202
203      <?php if ( 1 == get_option( 'blog_public' ) ) : ?>
204
205      <p><label for="ping_sites">
206           <?php
207           printf(
208                /* translators: %s: Codex URL */