mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +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:
@@ -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 ) )
|
||||
|
||||
Reference in New Issue
Block a user