Permalink
Browse files

Updating to remove WP SEO, etc.

  • Loading branch information...
zamoose committed Mar 11, 2013
1 parent 24bc4db commit cae03b26cbb9199a0a19cf47e170d06905301394
Showing with 9 additions and 0 deletions.
  1. +9 −0 include/lbcb-cpt.php
View
@@ -157,6 +157,15 @@ function lbcb_initialize_cmb_meta_boxes() {
}
add_action( 'init', 'lbcb_initialize_cmb_meta_boxes', 9999 );
+/**
+ * Remove Yoast's WP SEO metaboxes
+ */
+function lbcb_remove_wpseo_mb() {
+ // if ( ! current_user_can( 'edit_others_posts' ) )
+ remove_meta_box( 'wpseo_meta', 'ColorBox', 'normal' );
+}
+add_action( 'add_meta_boxes', 'lbcb_remove_wpseo_mb', 99);
+
/**
* Insert colorbox into the CPTs.
*/

0 comments on commit cae03b2

Please sign in to comment.