WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

CodeLibs

A simple plugin to add javascripts to your plugin or the theme. Useful for development work!

Arbitrary section

Latest Additions to this plugin:-

MarkUp to add scripts:-

  • just do this -
<?php include(ABSPATH."/wp-content/plugins/codelibs/func.php");
CodeLibs('scriptname', 'version'); ?>
  • or if you dont know the latest version no. just do this -
<?php include(ABSPATH."/wp-content/plugins/codelibs/func.php");
CodeLibs('scriptname', 'latest'); ?>
  • For Example, For your project if you want latest version of jQuery then do this -
<?php include(ABSPATH."/wp-content/plugins/codelibs/func.php");
CodeLibs('jQuery', '1.7.1'); ?>

OR

<?php include(ABSPATH."/wp-content/plugins/codelibs/func.php");
CodeLibs('jQuery', 'latest'); ?>
  • To Add more than one library use this simply as -
<?php include(ABSPATH."/wp-content/plugins/codelibs/func.php"); // just once
CodeLibs('jQuery', 'latest');
...
...
CodeLibs('jQueryUI','latest');
...
...
CodeLibs('URI','latest');

Requires: 3.2.1 or higher
Compatible up to: 3.3.2
Last Updated: 2012-1-11
Downloads: 1,095

Ratings

5 stars
5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1
100,2,2 100,1,1