I defined a user role in wordpress
add_role( ‘custom_role’, ‘Custom Role’, array( ‘read’ => true) );

I want to give that users access to blow url.


Note :
User has custom_role should only access to the give page

Please help me to find how to do it.
I found several articles to disallow access but couldn’t find a article access allowing

Thanks a lot

Read more here: I want to give access to a url in wp-admin for a user role which has only read access


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: