関数
Container::enqueueAssets()
必要なアセットを読み込む
戻り値 戻り値
ファイル: src/Components/CheckoutReview/Container.php
public function enqueueAssets() { Theme::enqueueThemeCss(WCEXAAP_PLUGIN_URL); wp_enqueue_style( self::ENTRY_SCRIPT_SLUG, WCEXAAP_PLUGIN_URL . '/src/Components/CheckoutReview/style.css', [], WCEXAAP_VERSION ); // scripts wp_enqueue_script( self::ENTRY_SCRIPT_SLUG, WCEXAAP_PLUGIN_URL . '/dist/checkoutReview.js', [], WCEXAAP_VERSION, true ); $this->loadCustomAssets(); /** * Fires after enqueuing CSS and JS for the Quickpay page * * Use this hook to load custom CSS or JS on the Quickpay page * * @important */ do_action('wcexaap_quickpay_custom_assets'); wp_set_script_translations(self::ENTRY_SCRIPT_SLUG, 'wcexaap', WCEXAAP_LANGDIR); wp_localize_script(self::ENTRY_SCRIPT_SLUG, AmazonPay::L10N, $this->makeJSvars()); }