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 |
---|---|
26 | if ( apply_filters( 'enable_post_by_email_configuration', true ) ) { |
27 | get_current_screen()->add_help_tab( array( |
28 | 'id' => 'options-postemail', |
29 | 'title' => __( 'Post Via Email' ), |
30 | '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’s a good idea to keep this address very secret.' ) . '</p>', |
31 | ) ); |
32 | } |
33 |
|
34 | /** This filter is documented in wp-admin/options-writing.php */ |
35 | if ( apply_filters( 'enable_update_services_configuration', true ) ) { |
36 | get_current_screen()->add_help_tab( array( |
37 | 'id' => 'options-services', |
38 | 'title' => __( 'Update Services' ), |
39 | 'content' => '<p>' . __( 'If desired, WordPress will automatically alert various services of your new posts.' ) . '</p>', |
40 | ) ); |
41 | } |
42 |
|
43 | get_current_screen()->set_help_sidebar( |
44 | '<p><strong>' . __('For more information:') . '</strong></p>' . |
Line | Code |
156 |
|
157 | <?php |
158 | /** |
159 | * Filters whether to enable the Update Services section in the Writing settings screen. |
160 | * |
161 | * @since 3.0.0 |
162 | * |
163 | * @param bool $enable Whether to enable the Update Services settings area. Default true. |
164 | */ |
165 | if ( apply_filters( 'enable_update_services_configuration', true ) ) { |
166 | ?> |
167 | <h2 class="title"><?php _e( 'Update Services' ) ?></h2> |
168 |
|
169 | <?php if ( 1 == get_option('blog_public') ) : ?> |
170 |
|
171 | <p><label for="ping_sites"><?php |
172 | printf( |
173 | /* translators: %s: Codex URL */ |
174 | __( 'When you publish a new post, WordPress automatically notifies the following site update services. For more about this, see <a href="%s">Update Services</a> on the Codex. Separate multiple service URLs with line breaks.' ), |