How to restrict access to a page in wordpress?

I am developing a page in wordpress like this:
in funcion.php file i write this

function feed_add_notmusa() {
add_feed(‘mypage’, ‘mypage_function’);
}

function mypage_function() {
get_template_part(‘/mypage’);
}

but how can i restrict access to /mypage to only loging people can access
Could you please help me?

Read more here:: How to restrict access to a page in wordpress?

Leave a Reply

Your email address will not be published. Required fields are marked *