alezzzzz
Forum Replies Created
-
Finally fixed it!
Had to add :
!defined( 'DOING_AJAX' ) || !DOING_AJAX
This way we check is not an AJAX call what is activating the hook ‘amin_init’:
function no_admin_access() { $redirect = home_url( '/' ); global $current_user; $user_roles = $current_user->roles; $user_role = array_shift($user_roles); if(( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) && ($user_role === "mentor" || $user_role === "supervisor" )){ exit( wp_redirect( $redirect ) ); } } add_action( 'admin_init', 'no_admin_access', 100 );
OK I just found out which one is the plugin that is conflicting with wp support plus.
I have a code to redirect users that are not admin users to frontend:
function no_admin_access() { $redirect = home_url( '/' ); global $current_user; $user_roles = $current_user->roles; $user_role = array_shift($user_roles); if($user_role === "mentor" || $user_role === "supervisor"){ exit( wp_redirect( $redirect ) ); } } add_action( 'admin_init', 'no_admin_access', 100 );
How can I Fix this problem? Any ideas?
thank you so much for a great plugin!!
Forum: Plugins
In reply to: [Front End PM] Is it possible to send message to multiple users?Ill try to work on this feature, If I manage to do something ill let you know …
Thank you!!
Any help???
I already paid for the Pro version but the support is far away from being pro … and Im having more problems related to this plugin.Im sorry but I cant post, it clearly says ‘you cannot post new topics’ on the bottom. To clarify Im coming from this page:
https://wedevs.com/support/forum/plugin-support/project-manager-pro/If I log out It says ‘You must be logged in to create new topics.’
So, If you could provide me a link or an explanation of where your support forum is It would be very helpfull indeed, I cant spend more of my time navigating through you support forum trying to find something.
Thank you in advance.
I tried before to post in your forum, but It wont let me open create new topics, I have an activation code of the Pro version given to me by my client but I dont have access to his user details.
I have just deactivated all plugins and used theme ‘Twenty thirteen’ and the problem is still there.
Sorry couldnt reply earlier, theres only one project and ‘Comunicación’ is the page name where the shortcode is.
You can view screenshot here:
ScreenshotForum: Plugins
In reply to: [WooCommerce] Woocommerce Multiple Parallel Checkouts (Franchise)Yeah I think you got what I meant, the idea is having the checkouts from different shops within the same shop.. Depending on product category a different Credit Card checkout will be used.
This way we avoid the extra maintenance that involves having different shops run by the same person.
The client whats it this way, and what I said was exactly the same thing you told me, I guess is not a common way to do this.