enable_post_by_email_configuration
Filters whether the post-by-email functionality is enabled.
Usage
add_filter( 'enable_post_by_email_configuration', 'wp_kama_enable_post_by_email_configuration_filter' ); /** * Function for `enable_post_by_email_configuration` filter-hook. * * @param bool $enabled Whether post-by-email configuration is enabled. * * @return bool */ function wp_kama_enable_post_by_email_configuration_filter( $enabled ){ // filter... return $enabled; }
- $enabled(true|false)
- Whether post-by-email configuration is enabled.
Default: true
Changelog
Since 3.0.0 | Introduced. |
Where the hook is called
In file: /wp-admin/options.php
enable_post_by_email_configuration
wp-admin/options.php 168
if ( apply_filters( 'enable_post_by_email_configuration', true ) ) {
wp-admin/options-writing.php 30
if ( apply_filters( 'enable_post_by_email_configuration', true ) ) {
wp-admin/options-writing.php 146
if ( apply_filters( 'enable_post_by_email_configuration', true ) ) {
wp-mail.php 14
if ( ! apply_filters( 'enable_post_by_email_configuration', true ) ) {
Where the hook is used in WordPress
wp-includes/ms-default-filters.php 112
add_filter( 'enable_post_by_email_configuration', '__return_false' );