enable_post_by_email_configuration
Filter HookDescription
Filters whether the post-by-email functionality is enabled.Hook Information
File Location |
wp-admin/options.php
View on GitHub
|
Hook Type | Filter |
Line Number | 168 |
Hook Parameters
Type | Name | Description |
---|---|---|
bool
|
$enabled
|
Whether post-by-email configuration is enabled. Default true. |
Usage Examples
Basic Usage
<?php
// Hook into enable_post_by_email_configuration
add_filter('enable_post_by_email_configuration', 'my_custom_filter', 10, 1);
function my_custom_filter($enabled) {
// Your custom filtering logic here
return $enabled;
}
Source Code Context
wp-admin/options.php:168
- How this hook is used in WordPress core
<?php
163 *
164 * @since 3.0.0
165 *
166 * @param bool $enabled Whether post-by-email configuration is enabled. Default true.
167 */
168 if ( apply_filters( 'enable_post_by_email_configuration', true ) ) {
169 $allowed_options['writing'][] = 'mailserver_url';
170 $allowed_options['writing'][] = 'mailserver_port';
171 $allowed_options['writing'][] = 'mailserver_login';
172 $allowed_options['writing'][] = 'mailserver_pass';
173 }
PHP Documentation
<?php
/**
* Filters whether the post-by-email functionality is enabled.
*
* @since 3.0.0
*
* @param bool $enabled Whether post-by-email configuration is enabled. Default true.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-admin/options.php
Related Hooks
Related hooks will be displayed here in future updates.