How to exclude a list of link (feed rss) from force login
-
hi, I would like to exclude the rss feeds of my site from the forced login. I saw that it can be done via a Hook in the code of the child theme but unfortunately I see that it can only be done by having an “ID” (which wordpress rss feeds don’t have, that I know of). How can I go about solving?
EDIT:
I looked for this Hook on the documentation:function loginpress_exclude_forcelogin_callback() {
return array( ‘privacy-policy’, ‘1’ ); //Here ‘1’ is the ID of the post.
}
add_filter(‘loginpress_exclude_forcelogin’, ‘loginpress_exclude_forcelogin_callback’ );But it needs an ID and a Slug that feed rss don’t have.. How can i solve?
- The topic ‘How to exclude a list of link (feed rss) from force login’ is closed to new replies.