Contents authored by the current connected user

    • # il y a 3 années et 4 mois

      Hello, I used the snippet on this page: https://wp-customerarea.com/knowledgebase/allow-contents-listings-to-also-show-private-contents-that-are-authored-by-the-current-connected-user/and

      The snippet is working fine on files but not on pages. Any idea about this issue?

       

      Thank you

    • Thomas
      Maître des clés
      # il y a 3 années et 4 mois

      Hi,

      I’ll update this code snippet to explain a bit more clearly, but this snippet is only needed if you want to do that programmatically, but you can also do that in Settings -> WP Customer Area -> {each private content type} -> uncheck “hide posts where the currently connected user is the author”.

      I’ll also test this snippet again to make sure it is applying correctly to any post_type, in case something is going wrong.

      Best regards.

      Want to help WP Customer Area? It only takes few seconds!
      Rate & review the plugin on WordPress.org 🙂

Vous lisez 1 fil de discussion

The topic ‘Contents authored by the current connected user’ is closed to new replies.