Add jquery,jquery ui, jquery ui datepicker in your plugin

Posted: July 17, 2015 in Uncategorized
Tags: , , , ,

while creating plugin,Generally developer add live link inside file but we can use jqeury ui provided by wordpress by following below code..
For use media API

wp_enqueue_media();

For query ui js

wp_enqueue_script(‘jquery-ui-core’);
wp_enqueue_script(‘jquery-ui-datepicker’); //for datepicker
wp_enqueue_style(“wp-jquery-ui-dialog”); //cSs

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s