Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Plugin Name: SEO Tollkit
- */
- //Exit if accessed directly
- if (! defined('ABSPATH')) {
- exit;
- }
- //define
- define( 'SEO_ACC_URL', WP_PLUGIN_URL . '/' . plugin_basename(dirname( __FILE__ ) ) . '/' );
- define( 'SEO_ACC_PATH', plugin_dir_path( __FILE__ ) );
- //print shortcode in widgets.
- add_filter('widget_text', 'do_shortcode');
- //vc addons load.
- require_once( SEO_ACC_PATH . 'vc-addons/vc-blocks-load.php' );
- //theme shortcode.
- require_once( SEO_ACC_PATH . 'theme-shortcodes/slider-shortcode.php' );
- //register seo toolkit files.
- function seo_toolkit_files(){
- wp_enqueue_style('owl-carousel', plugin_dir_url(__FILE__) . '/assets/css/owl.carousel.css');
- wp_enqueue_script('owl-carousel', plugin_dir_url(__FILE__) . '/assets/js/owl.carousel.min.js', array('jquery'), 'v.3.4.1', 'true' );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement