- 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
@@ -176,13 +176,7 @@ if ( ! class_exists( 'Admin_Settings' ) ) {
$all_post_types = get_post_types( array( 'public' => true ) );
$all_taxonomies = get_taxonomies( array( 'public' => true ) );
$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 ) )