wp register script

Solutions on MaxInterview for wp register script by the best coders in the world

showing results for - "wp register script"
Manel
26 Sep 2016
1function wp_register_script( $handle, $src, $deps = array(), $ver = false, $in_footer = false ) {
2    _wp_scripts_maybe_doing_it_wrong( __FUNCTION__, $handle );
3 
4    $wp_scripts = wp_scripts();
5 
6    $registered = $wp_scripts->add( $handle, $src, $deps, $ver );
7    if ( $in_footer ) {
8        $wp_scripts->add_data( $handle, 'group', 1 );
9    }
10 
11    return $registered;
12}
13
similar questions
queries leading to this page
wp register script