- fixed integration with User Tags extension (remove some hardcode, changed to hooks);

- fixed 2.0 upgrades for User roles meta data;
- clear/review code;
This commit is contained in:
nikitozzzzzzz
2017-09-06 09:03:24 +03:00
parent 31de1e49ce
commit 2921707a65
9 changed files with 309 additions and 102 deletions
+1 -7
View File
@@ -147,13 +147,7 @@ if ( ! class_exists( 'Admin_Metabox' ) ) {
//restrict content metabox
$all_taxonomies = get_taxonomies( array( 'public' => true ) );
$tax_types = um_get_option( 'restricted_access_taxonomy_metabox' );
$exclude_taxonomies = array(
'nav_menu',
'link_category',
'post_format',
'um_user_tag',
'um_hashtag',
);
$exclude_taxonomies = UM()->excluded_taxonomies();
foreach ( $all_taxonomies as $key => $taxonomy ) {
if ( in_array( $key, $exclude_taxonomies ) || empty( $tax_types[$key] ) )