• Resolved Tobias

    (@oneside)


    Hi, the plugin does not seem to work well with the Breakdance Page Builder.

    I have activated some roles for a page under “Content Restriction”, where you have the checkboxes “Select which roles can access this post”, but the page is still accessible for everyone.

    Perhaps this is due to the possibility of running breakdance websites without a theme?

    Nevertheless, I would like to use the plugin. To do this, I could use PHP in the Breakdance Editor to query whether access rights have been set for the user group of the current user and redirect the user myself if necessary.

    Is there a PHP function of the ‘Ultimate Members’-Plugin which I can use to check, if the current user hast access to this page and which returns true/false if the current user has access or not? Or at least is there a function to query the roles which have access to the current page?

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support andrewshu

    (@andrewshu)

    Hello @oneside

    You could try to use this function:

    if ( UM()->access()->is_restricted( $page_id ) ) {

    }

    Regards.

    Plugin Support andrewshu

    (@andrewshu)

    Hi @oneside

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread if any other questions come up and we’d be happy to help. 🙂

    Regards

    • This reply was modified 1 year, 9 months ago by andrewshu.
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Breakdance Page Builder Support’ is closed to new replies.