Thursday, 23 May 2013

Add Script in Wordpress


Add Script in Wordpress:  
         Syntax: wp_enqueue_script( $handle, $src, $deps, $ver, $in_footer);
          
           $handler: Name use to handle the script.
           $scr :Is the URL of the script.
           $ver: define script version number.
          
Example:
         <?php

          function add_script(){
           wp_enqueue_script('Jquery', plugin_url('jquery-ui-1.10.1.custom.min'), '');
           }
          add_action('int',add_script);

         ?>
      
          
    

No comments: