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 |
135 |
|
136 | <?php |
137 | do_settings_fields( 'writing', 'default' ); |
138 | do_settings_fields( 'writing', 'remote_publishing' ); // A deprecated section. |
139 | ?> |
140 | </table> |
141 |
|
142 | <?php |
143 | /** This filter is documented in wp-admin/options.php */ |
144 | if ( apply_filters( 'enable_post_by_email_configuration', true ) ) { |
145 | ?> |
146 | <h2 class="title"><?php _e( 'Post via email' ); ?></h2> |
147 | <p> |
148 | <?php |
149 | printf( |
150 | /* translators: 1, 2, 3: Examples of random email addresses. */ |
151 | __( '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.' ), |
152 | sprintf( '<kbd>%s</kbd>', wp_generate_password( 8, false ) ), |
153 | sprintf( '<kbd>%s</kbd>', wp_generate_password( 8, false ) ), |