Skip to content

Instantly share code, notes, and snippets.

@amdrew
Created October 1, 2015 22:02
Show Gist options
  • Save amdrew/1ebc1fc4b7ac440a5e50 to your computer and use it in GitHub Desktop.
Save amdrew/1ebc1fc4b7ac440a5e50 to your computer and use it in GitHub Desktop.
AffiliateWP - Force front-end scripts for a particular page
<?php
function affwp_custom_force_frontend_scripts() {
if ( is_page( 123 ) ) {
return true;
}
}
add_filter( 'affwp_force_frontend_scripts', 'affwp_custom_force_frontend_scripts' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment