• Resolved cedric3dinf

    (@cedric3dinf)


    I’ve been using this plugin to enable us to create orders on behalf of our clients using the frontend. We use a plugin that is only available in the frontend.

    We do however have special versions of this frontend, that we used to use on our own admin accounts. These pages are private.

    Can I use the ‘current_user_switched’ to view these pages, even though they are private?
    I’m not asking for an implemented solution, just a push in the right direction.

    Thank you very much!

Viewing 1 replies (of 1 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Off the top of my head I’m not sure how best to achieve this. I think you’ll need to dig into the WordPress roles and capabilities API, find the logic that determines whether a private page can be viewed, and filter it so it takes into account whether the current user is an administrator who has switched into another account. current_user_switched() is potentially part of that but without digging into it myself I’m not sure where to point you.

    If you need to hire a developer for this, codeable.io is decent.

Viewing 1 replies (of 1 total)
  • The topic ‘Private post visibility’ is closed to new replies.