Skip to content

Instantly share code, notes, and snippets.

@1nsp1r3rnzt
Created December 13, 2017 03:13
Show Gist options
  • Save 1nsp1r3rnzt/a341b7e50c0fbcccd5067cffd9be5817 to your computer and use it in GitHub Desktop.
Save 1nsp1r3rnzt/a341b7e50c0fbcccd5067cffd9be5817 to your computer and use it in GitHub Desktop.
add_action( 'transition_post_status', 'on_all_status_transitions', 10, 3 );
function my_assets() {
wp_enqueue_style( 'theme-style', get_stylesheet_uri(), array( 'reset' ) );
wp_enqueue_style( 'reset', get_stylesheet_directory_uri() . '/reset.css' );
wp_enqueue_script( 'owl-carousel', get_stylesheet_directory_uri() . '/owl.carousel.js', array( 'jquery' ) );
wp_enqueue_script( 'theme-scripts', get_stylesheet_directory_uri() . '/website-scripts.js', array( 'owl-carousel', 'jquery' ), '1.0', true );
}
add_action( 'wp_enqueue_scripts', 'my_assets' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment