/** * Define the core functionality of the plugin. * * Set the plugin name and the plugin version that can be used throughout the plugin. * Load the dependencies, define the locale, and set the hooks for the admin area and * the public-facing side of the site. * * @since 1.0.0 */ public function __construct() { $this->plugin_name = 'koshinski-vc-addon'; $this->version = '1.0.0'; $this->vc_required_version = '4.4'; $this->public_name = 'Visual Composer Addon'; $this->textdomain = 'koshinski-vc-addon'; self::$shortcode_category_name = 'koshinski addons'; self::$shortcode_prefix = 'koshinski_vc_addon_'; self::$shortcode_textdomain = $this->textdomain; $this->load_dependencies(); $this->set_locale(); $this->define_admin_hooks(); $this->define_public_hooks(); }
/** * 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_koshinski_vc_addon() { $plugin = new Koshinski_vc_addon(); $plugin->run(); }
public function __construct() { $this->shortcode_category_name = Koshinski_vc_addon::getShortcodeCategoryName(); $this->shortcode_prefix = Koshinski_vc_addon::getShortcodePrefix(); $this->shortcode_textdomain = Koshinski_vc_addon::getShortcodeTextDomain(); }