How to remove login popup and redirect user on User Pro login page?
this worked for me
function ap_page_template_redirect()
{
if( is_ask() && ! is_user_logged_in() )
{
auth_redirect();
exit();
}
}
this worked for me
function ap_page_template_redirect()
{
if( is_ask() && ! is_user_logged_in() )
{
auth_redirect();
exit();
}
}
Thank You sir for the response. But its not working.
i have added that code at the end of this file /wp-content/plugins/anspress-question-answer/theme/default/functions.php.
It gives error as below.
Call to undefined function ap_get_ask_page_slug() in /wp-content/plugins/anspress-question-answer/theme/default/functions.php on line 244