load settings assests

This commit is contained in:
paul sealock 2024-08-15 14:30:12 +12:00
parent 46deb6763d
commit 3ab5d9ec49
1 changed files with 4 additions and 0 deletions

View File

@ -41,6 +41,10 @@ if ( ! class_exists( 'WC_Admin_Assets', false ) ) :
$screen = get_current_screen(); $screen = get_current_screen();
$screen_id = $screen ? $screen->id : ''; $screen_id = $screen ? $screen->id : '';
if ( strpos( $_GET['path'], '/settings' ) !== false ) {
$screen_id = 'woocommerce_page_wc-settings';
}
// Register admin styles. // Register admin styles.
wp_register_style( 'woocommerce_admin_menu_styles', WC()->plugin_url() . '/assets/css/menu.css', array(), $version ); wp_register_style( 'woocommerce_admin_menu_styles', WC()->plugin_url() . '/assets/css/menu.css', array(), $version );
wp_register_style( 'woocommerce_admin_styles', WC()->plugin_url() . '/assets/css/admin.css', array(), $version ); wp_register_style( 'woocommerce_admin_styles', WC()->plugin_url() . '/assets/css/admin.css', array(), $version );