Skip to content

Instantly share code, notes, and snippets.

@lynettechandler
Created January 17, 2015 06:00
Show Gist options
  • Save lynettechandler/f270e3c2f7a727d8c3ac to your computer and use it in GitHub Desktop.
Save lynettechandler/f270e3c2f7a727d8c3ac to your computer and use it in GitHub Desktop.
wp_enqueue_script( 'pm-vat-admin', PM_VAT_DIR.'modules/js/admin.js', array('jquery', 'wp-color-picker'), false, true );
wp_localize_script( 'pm-vat-admin', 'pm_vat_object',
array(
'nonce' => wp_create_nonce('pm_vat_options'),
'is_admin' => is_admin(),
'plugin_name' => PM_VAT_PLUGIN_NAME
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment