mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Enqueue js at tax pages
This commit is contained in:
@@ -226,10 +226,10 @@ class UM_Admin_Enqueue {
|
||||
***/
|
||||
function is_UM_admin(){
|
||||
|
||||
global $current_screen, $post;
|
||||
|
||||
global $current_screen, $post, $tax;
|
||||
|
||||
$screen_id = $current_screen->id;
|
||||
|
||||
|
||||
if ( !is_admin() ) return false;
|
||||
|
||||
if ( strstr( $screen_id, 'ultimatemember') || strstr( $screen_id, 'um_') || strstr($screen_id, 'user') || strstr($screen_id, 'profile') )return true;
|
||||
@@ -238,6 +238,8 @@ class UM_Admin_Enqueue {
|
||||
|
||||
if ( isset( $post->post_type ) ) return true;
|
||||
|
||||
if ( isset( $tax->name ) ) return true;
|
||||
|
||||
return false;
|
||||
|
||||
}
|
||||
@@ -290,4 +292,4 @@ class UM_Admin_Enqueue {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user