Automattic\WooCommerce\Internal\Orders
OrderAttributionController::enqueue_admin_scripts_and_styles()
Enqueue the stylesheet for admin pages.
Метод класса: OrderAttributionController{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
// private - только в коде основоного (родительского) класса $result = $this->enqueue_admin_scripts_and_styles();
Код OrderAttributionController::enqueue_admin_scripts_and_styles() OrderAttributionController::enqueue admin scripts and styles WC 9.6.1
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' ) ); }