Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

citools.php

By: deadpickle on Dec 10th, 2012  |  syntax: PHP  |  size: 0.64 KB  |  views: 30  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.         function citools_enqueuer() {
  2.                 wp_enqueue_script('jquery');
  3.                 wp_enqueue_script('jquery-ui-core');
  4.                 wp_enqueue_script('jquery-ui-tabs');
  5.                 wp_enqueue_script('jquery-ui-dialog');
  6.                
  7.                 //register the js script to wp for use
  8.                 wp_register_script('build_base_tables_script', plugins_url('/js/build_base_tables_script.js', __FILE__), array('jquery'));
  9.                 //localize the script
  10.                 wp_localize_script('build_base_tables_script', 'MyAjax2', array('ajaxurl' => admin_url('admin-ajax.php'), 'post_build_base_tables_nonce' => wp_create_nonce('build_base_tables_nonce')));
  11.                 //init script and dependancies
  12.                 wp_enqueue_script('build_base_tables_script');
  13.         }