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
/** | |
* Filter Admin body class | |
* | |
* Add a post_type class to the admin body element. Helpful when styling custom post types. | |
**/ | |
add_filter( 'admin_body_class', 'vc_admin_body_class' ); | |
function vc_admin_body_class( $admin_body_class ) { | |
global $post; | |
if ( $_GET['post_type'] ) |
NewerOlder