WC_Admin_Assets
    
            
            in package
            
        
    
    
    
        
            WC_Admin_Assets Class.
These scripts are enqueued in the admin of the store. The registered script handles in this class can be used to enqueue the scripts in the admin by third party plugins and the handles will follow WooCommerce's L-1 support policy. Scripts registered outside of this class do not guarantee support and can be removed in future versions of WooCommerce.
Table of Contents
- __construct() : mixed
 - Hook in tabs.
 - admin_scripts() : mixed
 - Enqueue scripts.
 - admin_styles() : mixed
 - Enqueue styles.
 - enqueue_block_editor_assets() : void
 - Enqueue block editor assets.
 - register_scripts() : mixed
 - Register the scripts.
 - enqueue_block_editor_script() : void
 - Enqueue a script in the block editor.
 - get_scripts() : array<string|int, mixed>
 - Get the scripts used for registration.
 - is_order_meta_box_screen() : bool
 - Helper function to determine whether the current screen is an order edit screen.
 
Methods
__construct()
Hook in tabs.
    public
                __construct() : mixed
        
    
    
        Return values
mixed —admin_scripts()
Enqueue scripts.
    public
                admin_scripts() : mixed
        
    
    
        Return values
mixed —admin_styles()
Enqueue styles.
    public
                admin_styles() : mixed
        
    
    
        Return values
mixed —enqueue_block_editor_assets()
Enqueue block editor assets.
    public
                enqueue_block_editor_assets() : void
        
    
    
        Return values
void —register_scripts()
Register the scripts.
    public
                register_scripts() : mixed
        These scripts are registered early to allow other plugins to take advantage of them by handle.
Return values
mixed —enqueue_block_editor_script()
Enqueue a script in the block editor.
    private
                enqueue_block_editor_script(mixed $script_path_name, mixed $script_name) : void
        Similar to WCAdminAssets::register_script() but without enqueuing unnecessary dependencies.
Parameters
- $script_path_name : mixed
 - $script_name : mixed
 
Return values
void —get_scripts()
Get the scripts used for registration.
    private
                get_scripts() : array<string|int, mixed>
        
    
    
        Return values
array<string|int, mixed> —is_order_meta_box_screen()
Helper function to determine whether the current screen is an order edit screen.
    private
                is_order_meta_box_screen(string $screen_id) : bool
        
        Parameters
- $screen_id : string
 - 
                    
Screen ID.
 
