enable_post_by_email_configuration

enable_post_by_email_configuration

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('enable_post_by_email_configuration') is found 4 times:

  • /wp-admin/options-writing.php line 30
    	)
    );
    
    /** This filter is documented in wp-admin/options.php */
    if ( apply_filters( 'enable_post_by_email_configuration', true ) ) {
    	get_current_screen()->add_help_tab(
    		array(
    			'id'      => 'options-postemail',
    			'title'   => __( 'Post Via Email' ),
    			'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&#8217;s a good idea to keep this address very secret.' ) . '</p>',
    		)
    
  • /wp-admin/options-writing.php line 146

  • /wp-admin/options.php line 206
    	 * @since 3.0.0
    	 *
    	 * @param bool $enabled Whether post-by-email configuration is enabled. Default true.
    	 */
    	if ( apply_filters( 'enable_post_by_email_configuration', true ) ) {
    		$allowed_options['writing'] = array_merge( $allowed_options['writing'], $mail_options );
    	}
    }
    
    /**
     * Filters the allowed options list.
    
  • /wp-mail.php line 14
    /** Make sure that the WordPress bootstrap has run before continuing. */
    require __DIR__ . '/wp-load.php';
    
    /** This filter is documented in wp-admin/options.php */
    if ( ! apply_filters( 'enable_post_by_email_configuration', true ) ) {
    	wp_die( __( 'This action has been disabled by the administrator.' ), 403 );
    }
    
    $mailserver_url = get_option( 'mailserver_url' );
    
    if ( 'mail.example.com' === $mailserver_url || empty( $mailserver_url ) ) {