Skip to content

Instantly share code, notes, and snippets.

@salehahmadbabu
Created March 26, 2018 07:35
Show Gist options
  • Save salehahmadbabu/7f697be00f8b5f4ce1bdd787e201ae74 to your computer and use it in GitHub Desktop.
Save salehahmadbabu/7f697be00f8b5f4ce1bdd787e201ae74 to your computer and use it in GitHub Desktop.
<?php
/*
Plugin Name: Wow Shop Toolkit
Version: 1.0
*/
// Exit if accesed directly
if ( !defined('ABSPATH')) {
exit;
}
//Define
define('WOW_SHOP_ACC_URL', WP_PLUGIN_URL . '/' . plugin_basename( dirname(__FILE__) ) . '/');
define('WOW_SHOP_ACC_PATH', plugin_dir_path( __FILE__ ));
// Print shortcodes in widgets
// add_filter('widget_text', 'do_shortcode');
// loading VC addons
require_once( WOW_SHOP_ACC_PATH . 'vc-addons/vc-blocks-load.php');
// Theme shortcode
// require_once( WOW_SHOP_ACC_PATH . 'theme-shortcodes/slide-shortcode.php');
// shortcode depend on Visual Composer
include_once( ABSPATH . 'wp-admin/includes/plugin.php');
if (is_plugin_active( 'js_composer/js_composer.php' )) {
// require_once( WOW_SHOP_ACC_PATH . 'theme-shortcodes/staff-shortcode.php');
}
// registering stock toolkit files
function wow_shop_toolkit_files(){
}
add_action('wp_enqueue_scripts', 'wow_shop_toolkit_files' );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment