/** * Register stuffs */ public function register() { // register settings register_setting('boxzilla_settings', 'boxzilla_settings', array($this, 'sanitize_settings')); // register scripts $pre_suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min'; wp_register_script('boxzilla-admin', $this->plugin->url('/assets/js/admin-script' . $pre_suffix . '.js'), array('jquery', 'wp-util', 'wp-color-picker', 'suggest'), $this->plugin->version(), true); // load stylesheets wp_register_style('boxzilla-admin', $this->plugin->url('/assets/css/admin-styles' . $pre_suffix . '.css'), array(), $this->plugin->version()); }