Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Plugin Name: Stock Toolkit
- */
- // Exit if accessed directly
- if(! defined ('ABSPATH') ){
- exit;
- }
- // Define
- define( 'STOCK_ACC_URL', WP_PLUGIN_URL.'/'. plugin_basename(dirname( __FILE__) ) .'/');
- define( 'STOCK_ACC_PATH', plugin_dir_path(__FILE__) );
- // Toolkit files
- // VC addons loading
- require_once( STOCK_ACC_PATH . 'vc-addons/vc-blocks-load.php');
- // Theme shortcodes
- require_once( STOCK_ACC_PATH . 'theme-shortcode/shortcode-list.php');
- // Shortcodes depended on Visual Composer
- include_once( ABSPATH. 'wp-admin/includes/plugin.php');
- if( is_plugin_active('js_composer/js_composer.php')){
- require_once( STOCK_ACC_PATH . 'theme-shortcode/shortcode-list.php');
- }
- add_filter('widget_text', 'do_shortcode');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement