/** * Begins execution of the plugin. * * Since everything within the plugin is registered via hooks, * then kicking off the plugin from this point in the file does * not affect the page life cycle. * * @since 1.0.0 */ function run_bugcatches() { $plugin = new Bugcatches(); $plugin->run(); }
public function add_feedback_button($apikey) { $bugcatches = new Bugcatches(); wp_enqueue_script($this->plugin_name . '-feedback', '//bugcatches.com/feedback/' . $bugcatches->getApiKey() . '/create.js', array('jquery'), $this->version, false); }