Skip to content

Instantly share code, notes, and snippets.

@codearachnid
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codearachnid/888a72b9c4ee4f96260c to your computer and use it in GitHub Desktop.
Save codearachnid/888a72b9c4ee4f96260c to your computer and use it in GitHub Desktop.
Remove the "Authors" column from Co Authors Plus for a post type list in the admin
<?php
add_action( 'admin_init', 'coauthors_cleanup_admin_init', 100 );
function coauthors_cleanup_admin_init(){
global $coauthors_plus, $pagenow;
if( 'edit.php' == $pagenow && 'post' == $_GET['post_type']){
remove_filter( 'manage_posts_columns', array( $coauthors_plus, '_filter_manage_posts_columns' ) );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment