Last active
December 6, 2018 01:11
-
-
Save sergejmueller/e64c42ac66c314b5a79c0d4637c29e6c to your computer and use it in GitHub Desktop.
WordPress: Disable Post-by-Email configuration and functionality
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter('enable_post_by_email_configuration', '__return_false'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks Serge,
We used a similar filter to make a free plugin with a PHP priority added:
https://wordpress.org/plugins/disable-post-via-email-littlebizzy/
add_filter('enable_post_by_email_configuration', '__return_false', PHP_INT_MAX);