WP Simple Pay: Conditionally Dequeue Scripts & Styles
/** * @link https://library.wpcode.com/editor/e5wn795d/ */ add_filter( ‘simpay_before_register_public_scripts’, /** * @var array $scripts * @return array $scripts */ function( $scripts ) { // Do not load any scripts unless the user is on one of these pages. if ( ! is_page(…Continue reading