I have added two plugins in my wordpress theme

  1. WooCommerce
  2. Lead Capture Pro

Lead Capture Pro is a lead generating plugin. Companies get registered and can view available leads and buy them. The login screen for the companies is through WP-Admin login. When WooCommerce is activated in the theme then I get redirected to “My Account Page” of WooCommerce. I stopped this redirection using the following code in function.php

function admin_bar(){

  if(is_user_logged_in()){
    add_filter( 'show_admin_bar', '__return_true' , 1000 );
  }
}
add_action('init', 'admin_bar' );

add_filter( 'woocommerce_prevent_admin_access', '__return_false' );
add_filter( 'woocommerce_disable_admin_bar', '__return_false' );

This redirects me to the company profile page where he/she can see the leads and purchase history. Now what I need to do is to have a single page having both menu of WooCommerce and Lead Capture Pro plugin with the same layout. I am unable to call Lead Capture Pro view in my custom page. Need some pointers.

Read more here: How can I use plugin views in my wordpress theme


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: