Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: enable_post_by_email_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
23 ) );
24
25 get_current_screen()->add_help_tab( array(
26      'id'      => 'options-press',
27      'title'   => __('Press This'),
28      'content' => '<p>' . __('Press This is a bookmarklet that makes it easy to blog about something you come across on the web. You can use it to just grab a link, or to post an excerpt. Press This will even allow you to choose from images included on the page and use them in your post. Just drag the Press This link on this screen to your bookmarks bar in your browser, and you&#8217;ll be on your way to easier content creation. Clicking on it while on another website opens a popup window with all these options.') . '</p>',
29 ) );
30
31 /** This filter is documented in wp-admin/options.php */
32 if ( apply_filters( 'enable_post_by_email_configuration', true ) ) {
33      get_current_screen()->add_help_tab( array(
34           'id'      => 'options-postemail',
35           'title'   => __( 'Post Via Email' ),
36           '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 e-mail 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>',
37      ) );
38 }
39
40 /** This filter is documented in wp-admin/options-writing.php */
41 if ( apply_filters( 'enable_update_services_configuration', true ) ) {
 
Line Code
119 <p><?php _e('Drag-and-drop the following link to your bookmarks bar or right click it and add it to your favorites for a posting shortcut.') ?></p>
120 <p class="pressthis"><a onclick="return false;" oncontextmenu="if(window.navigator.userAgent.indexOf('WebKit')!=-1||window.navigator.userAgent.indexOf('MSIE')!=-1){jQuery('.pressthis-code').show().find('textarea').focus().select();return false;}" href="<?php echo htmlspecialchars( get_shortcut_link() ); ?>"><span><?php _e('Press This') ?></span></a></p>
121 <div class="pressthis-code" style="display:none;">
122      <p class="description"><?php _e('If your bookmarks toolbar is hidden: copy the code below, open your Bookmarks manager, create new bookmark, type Press This into the name field and paste the code into the URL field.') ?></p>
123      <p><textarea rows="5" cols="120" readonly="readonly"><?php echo htmlspecialchars( get_shortcut_link() ); ?></textarea></p>
124 </div>
125
126 <?php
127 /** This filter is documented in wp-admin/options.php */
128 if ( apply_filters( 'enable_post_by_email_configuration', true ) ) {
129 ?>
130 <h3 class="title"><?php _e('Post via e-mail') ?></h3>
131 <p><?php printf(__('To post to WordPress by e-mail you must set up a secret e-mail account with POP3 access. Any mail received at this address will be posted, so it&#8217;s a good idea to keep this address very secret. Here are three random strings you could use: <kbd>%s</kbd>, <kbd>%s</kbd>, <kbd>%s</kbd>.'), wp_generate_password(8, false), wp_generate_password(8, false), wp_generate_password(8, false)) ?></p>
132
133 <table class="form-table">
134 <tr>
135 <th scope="row"><label for="mailserver_url"><?php _e('Mail Server') ?></label></th>
136 <td><input name="mailserver_url" type="text" id="mailserver_url" value="<?php form_option('mailserver_url'); ?>" class="regular-text code" />
137 <label for="mailserver_port"><?php _e('Port') ?></label>