Automattic\WooCommerce\Internal\Orders
OrderAttributionController::enqueue_admin_scripts_and_styles
Enqueue the stylesheet for admin pages.
Method of the class: OrderAttributionController{}
No Hooks.
Returns
null. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->enqueue_admin_scripts_and_styles();
OrderAttributionController::enqueue_admin_scripts_and_styles() OrderAttributionController::enqueue admin scripts and styles code WC 10.4.3
private function enqueue_admin_scripts_and_styles() {
$screen = get_current_screen();
if ( $screen->id !== $this->get_order_screen_id() ) {
return;
}
// phpcs:ignore WordPress.WP.EnqueuedResourceParameters.NotInFooter
wp_enqueue_script(
'woocommerce-order-attribution-admin-js',
plugins_url( "assets/js/admin/order-attribution-admin{$this->get_script_suffix()}.js", WC_PLUGIN_FILE ),
array( 'jquery' ),
Constants::get_constant( 'WC_VERSION' )
);
}