enable_post_by_email_configuration
Filters whether the post-by-email functionality is enabled.
Использование
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.
По умолчанию: true
Список изменений
С версии 3.0.0 | Введена. |
Где вызывается хук
В файле: /wp-admin/options.php
enable_post_by_email_configuration
wp-admin/options.php 205
if ( apply_filters( 'enable_post_by_email_configuration', true ) ) {
wp-mail.php 14
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 144
if ( apply_filters( 'enable_post_by_email_configuration', true ) ) {
Где используется хук в WordPress
wp-includes/ms-default-filters.php 112
add_filter( 'enable_post_by_email_configuration', '__return_false' );