Created
January 20, 2017 13:33
-
-
Save lewayotte/7d97845ecbdbc9c82003c48ca65a5d53 to your computer and use it in GitHub Desktop.
Exclude Twitter by default in Leenk Me
This file contains hidden or 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 | |
function default_exclude( $post ) { | |
global $hook_suffix; | |
if ( 'post-new.php' == $hook_suffix ) { | |
update_post_meta( $post->ID, '_twitter_exclude', true ); | |
} | |
} | |
add_action( 'dbx_post_advanced', 'default_exclude' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment