function init() { $this->labels = array('singular_name' => __('Entry', 'crb'), 'plural_name' => __('Entries', 'crb')); if (defined('WP_ADMIN') && WP_ADMIN) { wp_enqueue_script('jquery-ui-sortable'); } Carbon_Field::init(); }
function init() { $this->help_text(__('If you need to add scripts to your footer (like Google Analytics tracking code), you should enter them in this box.', 'crb')); add_action('wp_footer', array($this, 'print_scripts')); Carbon_Field::init(); }