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 |
---|---|
17 |
|
18 | get_current_screen()->add_help_tab( array( |
19 | 'id' => 'overview', |
20 | 'title' => __('Overview'), |
21 | 'content' => '<p>' . __('You can submit content in several different ways; this screen holds the settings for all of them. The top section controls the editor within the dashboard, while the rest control external publishing methods. For more information on any of these methods, use the documentation links.') . '</p>' . |
22 | '<p>' . __('You must click the Save Changes button at the bottom of the screen for new settings to take effect.') . '</p>', |
23 | ) ); |
24 |
|
25 | /** This filter is documented in wp-admin/options.php */ |
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 install 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 ) ) { |
Line | Code |
105 |
|
106 | <?php |
107 | do_settings_fields('writing', 'default'); |
108 | do_settings_fields('writing', 'remote_publishing'); // A deprecated section. |
109 | ?> |
110 | </table> |
111 |
|
112 | <?php |
113 | /** This filter is documented in wp-admin/options.php */ |
114 | if ( apply_filters( 'enable_post_by_email_configuration', true ) ) { |
115 | ?> |
116 | <h2 class="title"><?php _e( 'Post via email' ) ?></h2> |
117 | <p><?php |
118 | printf( |
119 | /* translators: 1, 2, 3: examples of random email addresses */ |
120 | __( 'To post to WordPress by email you must set up a secret email account with POP3 access. Any mail received at this address will be posted, so it’s a good idea to keep this address very secret. Here are three random strings you could use: %1$s, %2$s, %3$s.' ), |
121 | sprintf( '<kbd>%s</kbd>', wp_generate_password( 8, false ) ), |
122 | sprintf( '<kbd>%s</kbd>', wp_generate_password( 8, false ) ), |
123 | sprintf( '<kbd>%s</kbd>', wp_generate_password( 8, false ) ) |