WordPress at Your Fingertips
function is not described

WC_Gateway_Paypal::admin_scripts() public WC 3.3.0

Load admin scripts.

{} It's a method of the class: WC_Gateway_Paypal{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Gateway_Paypal = new WC_Gateway_Paypal();
$WC_Gateway_Paypal->admin_scripts();

Changelog

Since 3.3.0 Introduced.

Code of WC_Gateway_Paypal::admin_scripts() WC 5.6.0

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 );
}