• Resolved qvlsebastian

    (@qvlsebastian)


    I installed the free version of Cool Timeline and my WordPress users with the role Editor cannot create any stories or timelines and cant actually work with the plugin? Is that intended? Role administrator works fine (for me).

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Aniket Dogra

    (@aniketji)

    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

    Thread Starter qvlsebastian

    (@qvlsebastian)

    thanks for clarification! Where can I find this costume code?

    Plugin Support Aniket Dogra

    (@aniketji)

    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.
    Plugin Support Aniket Dogra

    (@aniketji)

    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.

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.