Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.78 KB | None | 0 0
  1. <?php
  2. /*
  3. Plugin Name: Stock Toolkit
  4. */
  5.  
  6. // Exit if accessed directly
  7.  
  8. if(! defined ('ABSPATH') ){
  9.     exit;
  10. }
  11.  
  12. // Define
  13.  
  14. define( 'STOCK_ACC_URL', WP_PLUGIN_URL.'/'. plugin_basename(dirname( __FILE__) ) .'/');
  15. define( 'STOCK_ACC_PATH', plugin_dir_path(__FILE__) );
  16.  
  17.  
  18. // Toolkit files
  19.  
  20.  
  21.  
  22. // VC addons loading
  23.  
  24. require_once( STOCK_ACC_PATH . 'vc-addons/vc-blocks-load.php');
  25.  
  26. // Theme shortcodes
  27.  
  28. require_once( STOCK_ACC_PATH . 'theme-shortcode/shortcode-list.php');
  29.  
  30.  
  31. // Shortcodes depended on Visual Composer
  32. include_once( ABSPATH. 'wp-admin/includes/plugin.php');
  33.     if( is_plugin_active('js_composer/js_composer.php')){
  34.         require_once( STOCK_ACC_PATH . 'theme-shortcode/shortcode-list.php');
  35.     }
  36.  
  37.  
  38.  
  39.  
  40. add_filter('widget_text', 'do_shortcode');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement