Fix bugs, use plural post slugs, move actions and filters into hooks folder
This commit is contained in:
12
admin/hooks/wp-enqueue-scripts.php
Normal file
12
admin/hooks/wp-enqueue-scripts.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
function sportspress_enqueue_scripts() {
|
||||
// Styles
|
||||
wp_register_style( 'sportspress', SPORTSPRESS_PLUGIN_URL . 'assets/css/sportspress.css', array(), time() );
|
||||
wp_enqueue_style( 'sportspress');
|
||||
|
||||
// Scripts
|
||||
wp_enqueue_script( 'jquery' );
|
||||
wp_enqueue_script( 'jquery-datatables', SPORTSPRESS_PLUGIN_URL .'/assets/js/jquery.dataTables.min.js', array( 'jquery' ), '1.9.4', true );
|
||||
wp_enqueue_script( 'sportspress', SPORTSPRESS_PLUGIN_URL .'/assets/js/sportspress.js', array( 'jquery' ), time(), true );
|
||||
}
|
||||
add_action( 'wp_enqueue_scripts', 'sportspress_enqueue_scripts' );
|
||||
Reference in New Issue
Block a user