Created
August 20, 2014 09:59
-
-
Save Pebblo/89211faad98bf6b69e2a to your computer and use it in GitHub Desktop.
Set the default value for the 'Create a post' option within EE3. Place this within your themes functions.php, within wp-content/uploads/espresso/custom_functions.php or a site specific function. Requires 3.1.37+
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 //Please do not include the opening PHP tag | |
add_filter('filter_hook_espresso_default_create_post_option', 'ee_return_create_post'); | |
function ee_return_create_post(){ | |
return 'Y'; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment