Hi @qvlsebastian,
Yes — this is expected behavior.
In the free version, only Administrator users have permission to create and manage timeline stories. By default, Editor users don’t have access to these features.
If you’d like, you can adjust this using custom code.
Thanks & Regards
thanks for clarification! Where can I find this costume code?
Hi @qvlsebastian,
You don’t need to add any large or complex custom code for this.
Just open the file:
admin/class.cool-timeline-posttype.php
Before using $user_role, first get the current user role using WordPress functions:
$user = wp_get_current_user();
$user_role = (array) $user->roles;
Search for:
show_in_menu
Then replace this line:
'show_in_menu' => 'cool-plugins-timeline-addon'
with
'show_in_menu' => ($user_role == "editor") ? true : 'cool-plugins-timeline-addon'
This will allow Editor users to access the timeline menu as well.
Also, to make things easier and avoid file edits in the future, we’re planning to add filter hooks so you can control this more cleanly without modifying plugin files.
Thanks & Regards
-
This reply was modified 1 month, 2 weeks ago by
Aniket Dogra.
Hi @qvlsebastian,
We haven’t received any response, so we’re closing this ticket for now.
If you need further help or face any new issues, feel free to open a new ticket.
Thank You.