Skip to content

Instantly share code, notes, and snippets.

@jesseeproductions
Created March 29, 2018 22:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jesseeproductions/608f1ba333a9f368a5bff791db84ac2a to your computer and use it in GitHub Desktop.
Save jesseeproductions/608f1ba333a9f368a5bff791db84ac2a to your computer and use it in GitHub Desktop.
Load Coupon Creator Pro CSS in Header
add_action( 'wp_enqueue_scripts', 'cctor_enqueue_assets', 11 );
function cctor_enqueue_assets() {
if ( ! is_admin() ) {
// @formatter:off
wp_enqueue_style(
'coupon_creator_css',
Cctor__Coupon__Pro__Main::instance()->resource_url . 'css/coupon-pro.css',
array( 'pngx-font-awesome' ),
filemtime( Cctor__Coupon__Pro__Main::instance()->resource_path . 'css/coupon-pro.css' )
);
// @formatter:on
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment