芝麻web文件管理V1.00
编辑当前文件:/home/ezdajrnh/public_html/wp-content/plugins/google-listings-and-ads/src/Assets/StyleAsset.php
media = $media; parent::__construct( 'css', $handle, $uri, $dependencies, $version, $enqueue_condition_callback ); } /** * Get the register callback to use. * * @return callable */ protected function get_register_callback(): callable { return function () { if ( wp_style_is( $this->handle, 'registered' ) ) { return; } wp_register_style( $this->handle, $this->uri, $this->dependencies, $this->version, $this->media ); }; } /** * Get the enqueue callback to use. * * @return callable */ protected function get_enqueue_callback(): callable { return function () { if ( ! wp_style_is( $this->handle, 'registered' ) ) { throw InvalidAsset::asset_not_registered( $this->handle ); } wp_enqueue_style( $this->handle ); }; } /** * Get the dequeue callback to use. * * @return callable */ protected function get_dequeue_callback(): callable { return function () { wp_dequeue_style( $this->handle ); }; } }