Home › Forums › Calendar Products › Events Calendar PRO › Hide sections of the Events Add Admin page
- This topic has 6 replies, 2 voices, and was last updated 6 years, 5 months ago by Kyle Smiles.
-
AuthorPosts
-
October 26, 2017 at 2:46 pm #1369621Kyle SmilesParticipant
I need to hide a couple of tables (#event_tribe_venue, #event_tribe_organizer, #event_cost) in the Admin sections for a specific role (i.e. Editor). I tried to hide the tables using CSS and this causes the calendar AJAX calls to hang. Please let me know the best way of accomplishing this. Thank you in advance.
October 27, 2017 at 12:36 pm #1370367VictorKeymasterHi Kyle!
Nice to see you again! 🙂 Let me try to help you with that.
I think you will find the following article about Admin roles and permissions of interest if you want to limit the capabilities of certain user roles. >Â https://theeventscalendar.com/knowledgebase/admin-roles-and-permissions/
I hope it helps! Let me know if you have follow up questions.
Best,
VictorOctober 30, 2017 at 6:57 am #1371361Kyle SmilesParticipantThis doesn’t help. This just allows me to only limit the users capabilities. This is only part of the solution. I need my users to be able to add/edit/delete their own events. The plug-in helps limit their abilities, but it doesn’t limit their ability to modify event categories, add venue, costs, etc. I need to have these sections removed, if possible, to avoid them entering this information.
October 31, 2017 at 5:44 am #1372027VictorKeymasterHi Kyle!
If you want to hide the venue, organizer and cost tables from the edit event page, you can use the following snippet as an example to add styles to the admin:
function hide_event_tables($hook) {
?> <style type="text/css">
table#event_tribe_venue, table#event_tribe_organizer, table#event_cost { display: none; }
</style> <?php
}
add_action( 'admin_enqueue_scripts', 'hide_event_tables' );Bear in mind you will need to add additional code to only apply those styles for specific user roles.
Best,
VictorOctober 31, 2017 at 8:52 am #1372173Kyle SmilesParticipantThank you this seems to have worked 🙂
October 31, 2017 at 1:58 pm #1372500VictorKeymasterHi Kyle!
Glad to know it worked out! 🙂
I’ll close this thread now but feel free to open a new topic if anything comes up and we’ll be happy to help.
Cheers,
Victor -
AuthorPosts
- The topic ‘Hide sections of the Events Add Admin page’ is closed to new replies.