plugin_name = $plugin_name; $this->version = $version; add_action( 'admin_menu', array($this,'plugin_menu') ); add_action($this->plugin_name.'_promotion', array($this,'promotion')); } function plugin_menu(){ $this->menu = add_submenu_page( 'woocommerce', __( 'Direct Checkout', 'pi-dcw' ), __( 'Direct Checkout', 'pi-dcw' ), 'manage_options', 'pi-dcw', array($this, 'menu_option_page'), 'dashicons-randomize', 6 ); add_action("load-".$this->menu, array($this,"bootstrap_style")); } public function bootstrap_style() { wp_enqueue_style( $this->plugin_name."_bootstrap", plugin_dir_url( __FILE__ ) . 'css/bootstrap.css', array(), $this->version, 'all' ); } function menu_option_page(){ ?>
plugin_name.'_tab'); ?>
plugin_name.'_tab_content'); ?>
plugin_name.'_promotion'); ?>

OFFER !!!
Get Pro Version for FREE

Review us on WordPress and you may get PRO version for FREE

Give Rating Now !!

Get Pro for

insted of $19, Buy Now !!

PRO version Features are:

  • Our Redirect also works with Ajax add to cart button
  • Set custom redirect on each product, so they get redirected to some related product where they can buy that as well
  • Product Overwrite for redirect setting
  • Disable redirect for specific product
  • Enable redirect for only specific product
  • Set different Redirect page for specific product
Click to Buy Now
= 6); } }