Free Directory, Listing & Classifieds WordPress Plugin › Support › Themes › ListingHive › Unable to delete the vendor
Unable to delete the vendor
I urgently need your help.
Whenever I try to delete the vendor I get a WordPress error ” Sorry, you are not allowed to move this item to the Trash.”
I was able to delete the vendors until yesterday.
Did you guys push any changes to the theme?
Please help me
There were no changes, please make sure that you have the administrator role or other role that allows removing content. Please note that vendors are managed automatically, it’s just a profile for users with listings. So if user updates or adds a new listing vendor will be created again.
Well, I do not want the users profile box shown after the listing is published and that is the reason I have to go and delete it manually every time. Is there a way that I can disable the vendor box on the listings page?
I don’t want to hide it. But disable it.
Sure, this code snippet should do it (add it to the child theme functions.php file):
I’ll add some option for disabling vendors in the next version, so this fix will not be required.
I am receiving an error
Your PHP code changes were rolled back due to an error on line 20 of file wp-content/themes/listinghive/functions.php. Please fix and try saving again.
syntax error, unexpected ‘<‘, expecting end of file
Please copy this code snippet without the first line:
Also please don’t add it to listinghive/functions.php file, if you update ListingHive then any changes to this file will be lost. You can generate a child theme for customizations https://wordpress.org/plugins/child-theme-generator/
You must be logged in to reply to this topic.