• Resolved n2k360

    (@n2k360)


    Hi, nice system you have. At the moment I’m looking for a solution for the “my account” page. Where or how is it possible to edit the individual blocks?
    Is it possible to restrict the access when you are loged in with manager role, so all non selfcreated trips would not be free to edit?

    Thank you in advance.

    Nick

    • This topic was modified 4 years, 7 months ago by n2k360.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author bookingalgorithms

    (@bookingalgorithms)

    Hello,

    It’s possible, but you need some programming skills to do this. You can edit “My account” page code by filtering it programmatically in your child theme using filters that you can find in the BABE_My_account class (folder /includes/class-babe-my-account.php).

    Best Regards,
    Booking Algorithms team

    Thread Starter n2k360

    (@n2k360)

    Thank you a lot Booking Algorithms team,

    So with the “Child Theme Generator” I created a new theme.
    Is the theme wrapped over the database and is now ready to edit?

    Now I’m also looking for the right part in class-babe-my-account.php.
    Not sure which part has to be changed and how.
    Is it row 1666 or 1644 or 1606 in the class-babe-my-account.php document.
    Does it have to do with check_role, edit_post, nav-bar?

    Also the plugin “restrict user access” helps to disable the wp dashboard in manager role. But to restirict the edit access for managers for all trips or allow customers to edit new trips, I don’t get how to do that.

    Kind Regards,
    Nick

    • This reply was modified 4 years, 7 months ago by n2k360.
    • This reply was modified 4 years, 7 months ago by n2k360.
    Plugin Author bookingalgorithms

    (@bookingalgorithms)

    Hello,

    Depending on your tasks you should use hooks (filters, actions) from the BABE_My_account class or other classes to add your custom functions in the child theme and overwrite the plugins output. For example, you can use filter ‘babe_myaccount_manager_edit_post’ (BABE_My_account class, line 1658) to prevent show edit post content for some users based on their role, and use filter ‘cmb2_can_save’ (see BABE_CMB2_admin class, lines 42, 1485) to prevent post update actions.
    Hope this helps you.

    Best Regards,
    Booking Algorithms team

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘account page edit’ is closed to new replies.