Skip to content

Instantly share code, notes, and snippets.

@Pebblo
Created August 20, 2014 09:59
Show Gist options
  • Save Pebblo/89211faad98bf6b69e2a to your computer and use it in GitHub Desktop.
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+
<?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