plugin_name = $plugin_name; $this->version = $version; } /** * Register the JavaScript for the public-facing site. This function should be added * as a callback when using the `wp_enqueue_scripts` hook. * * @since 1.0.0 */ public function enqueue_scripts() { $actblue_src = actblue_get_url( '/cf/assets/actblue.js' ); wp_enqueue_script( $this->plugin_name . '-vendor', $actblue_src, array(), $this->version, false ); // Enqueue the local plugin script. wp_enqueue_script( $this->plugin_name . '-plugin', ACTBLUE_PLUGIN_URI . 'build/actblue-contributions.js', array( $this->plugin_name . '-vendor' ), $this->version, false ); } }