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 |
---|---|
21 | array( |
22 | 'id' => 'overview', |
23 | 'title' => __( 'Overview' ), |
24 | '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>' . |
25 | '<p>' . __( 'You must click the Save Changes button at the bottom of the screen for new settings to take effect.' ) . '</p>', |
26 | ) |
27 | ); |
28 |
|
29 | /** This filter is documented in wp-admin/options.php */ |
30 | if ( apply_filters( 'enable_post_by_email_configuration', true ) ) { |
31 | get_current_screen()->add_help_tab( |
32 | array( |
33 | 'id' => 'options-postemail', |
34 | 'title' => __( 'Post Via Email' ), |
35 | '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>', |
36 | ) |
37 | ); |
38 | } |
39 |
|
Line | Code |
130 |
|
131 | <?php |
132 | do_settings_fields( 'writing', 'default' ); |
133 | do_settings_fields( 'writing', 'remote_publishing' ); // A deprecated section. |
134 | ?> |
135 | </table> |
136 |
|
137 | <?php |
138 | /** This filter is documented in wp-admin/options.php */ |
139 | if ( apply_filters( 'enable_post_by_email_configuration', true ) ) { |
140 | ?> |
141 | <h2 class="title"><?php _e( 'Post via email' ); ?></h2> |
142 | <p> |
143 | <?php |
144 | printf( |
145 | /* translators: 1, 2, 3: Examples of random email addresses. */ |
146 | __( '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.' ), |
147 | sprintf( '<kbd>%s</kbd>', wp_generate_password( 8, false ) ), |
148 | sprintf( '<kbd>%s</kbd>', wp_generate_password( 8, false ) ), |