patripat
Forum Replies Created
-
AuthorPosts
-
this one will remove the +New menu on the top bar that is filled with everything we can add as an admin :
function wpse_260669_remove_new_content(){
global $wp_admin_bar;
$wp_admin_bar->remove_menu( ‘new-content’ );
}
add_action( ‘wp_before_admin_bar_render’, ‘wpse_260669_remove_new_content’ );resolved with the following code, might be useful for other people willing to do the multi vendor thing, this code will allow to use WC Marketplace and hide admin menu from “wcmp_vendor” class of user :
function remove_menus(){
$user_id = get_current_user_id();
if(is_user_wcmp_vendor($user_id)){remove_menu_page( ‘index.php’ ); //Dashboard
remove_menu_page( ‘edit.php?post_type=gd_place’ ); //WPGD*
remove_menu_page( ‘edit.php?post_type=gd_event’ ); //Events*
remove_menu_page( ‘edit.php?post_type=gd_list’ ); //List*
remove_menu_page( ‘edit.php’ ); //Posts
remove_menu_page( ‘upload.php’ ); //Media
remove_menu_page( ‘edit.php?post_type=page’ ); //Pages
remove_menu_page( ‘edit-comments.php’ ); //Comments
remove_menu_page( ‘themes.php’ ); //Appearance
remove_menu_page( ‘plugins.php’ ); //Plugins
remove_menu_page( ‘users.php’ ); //Users
remove_menu_page( ‘tools.php’ ); //Tools
remove_menu_page( ‘options-general.php’ ); //Settings}
}
add_action( ‘admin_menu’, ‘remove_menus’ );Now chasing a way to remove items from the top admin menu bar
Dear admins, is it ok if i keep posting snippets until i got it perfect? Other people may be struggling with that…Thank you,
PatThis reply has been marked as private.This reply has been marked as private.been careful enough to run a backup every morning hahaha 🙂
i’ll ask wcmp for support, thanks for your help Stiofan, members plugin is way too advanced for me 🙂
Have a nice evening,
Patthink i did something wrong, installed “members” and checked disable for anything that did not show “enable” for vendor and now i can’t access add a product again…now i disabled “members” and when i hit products management it drives me to “my account”…will post result if i got it resolved (any idea is welcome 🙂 )
Hi Stiofan,
you are my guru 🙂 Thanks!
Just a thing, i just connected with the vendor account and it seems that with enabling backend access in GD>General it gives “vendors” access to a lot more then just what would be related to WooCommerce and adding a product…Any idea how i can solve that? I already had a look but could not find a plugin that restricts access to some parts of the backend to a category of user…
Thanks a lot!
PatrickThis reply has been marked as private.hello,
since an update i got the error message in the screenshot, userswp is installed…and seems to be working fine…
Thanks,
Patmhm it does now, yes…even if i enable fb events importer again…that’s weird, i checked in 3 browsers before asking the question…
anyway, thanks for your help guy’s, i’ll keep it under monitoring for some time
Thanks a lot for your help and have a nice day 🙂
Pati just had a look and this is the actual situation :
Fb events importer = disabled
GDBooster = enabledResult : listings page not showing map and slider widget on listing top page not displaying
Changed to :
Fb events importer = disabled
GDBooster = disabledResult = map and slider loading and displaying as it should
lets say i keep Fb events importer disabled for now, and i got a new key for Google maps with *.toutwat.be/* as authorized domain and when i enable GDBooster i got no map and no widget…
Do you guys see anything else?
Thank you,
PatHi Guust,
this is also a thing i dont understand, each time someone from your team takes this one up i go through the link in GD to request a new key and each time i got a remark saying its not the good key 🙂 …maybe i do something wrong? i guess its just to create a new project and ask for a new key, copy/paste and thats it…
Thanks,
PatHi Stiofan,
Facebook events importer allows automatic import from Fb pages through a cron, it is a thing that you do not allow with social importer (yet?). And since i got so many events to import, i found it as a solution.
They really cannot live together?
One thing i just noticed too is that if GDBooster is enabled, when adding a widget on the listings page, it would not display, but it would appear when disabling GDBooster (happens with the slider under gmap listing)
Thanks,
PatThis reply has been marked as private.Hi Paolo,
ah its there, ok i’ll post on that one,
Thank you,
Pat -
AuthorPosts