Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

wordpress hook add javascript

add_action( 'wp_enqueue_scripts', 'my_custom_script_load' );
function my_custom_script_load(){
  wp_enqueue_script( 'my-custom-script', get_stylesheet_directory_uri() . '/custom-scripts', array( 'jquery' ) );
}
Source by calderaforms.com #
 
PREVIOUS NEXT
Tagged: #wordpress #hook #add #javascript
ADD COMMENT
Topic
Name
5+8 =