mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-17 21:53:43 +09:00
- 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:
@@ -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] ) )
|
||||
|
||||
Reference in New Issue
Block a user