WC_Gateway_Paypal::admin_scripts()
Load admin scripts.
Description Description
Source Source
File: includes/gateways/paypal/class-wc-gateway-paypal.php
public function admin_scripts() {
$screen = get_current_screen();
$screen_id = $screen ? $screen->id : '';
if ( 'woocommerce_page_wc-settings' !== $screen_id ) {
return;
}
$suffix = Constants::is_true( 'SCRIPT_DEBUG' ) ? '' : '.min';
$version = Constants::get_constant( 'WC_VERSION' );
wp_enqueue_script( 'woocommerce_paypal_admin', WC()->plugin_url() . '/includes/gateways/paypal/assets/js/paypal-admin' . $suffix . '.js', array(), $version, true );
}
Changelog Changelog
| Version | Description |
|---|---|
| 3.3.0 | Introduced. |