MCQs > IT & Programming > JavaScript > Correct way to redirect the default login and registration page URL to a custom login and registration page URL?

JavaScript MCQs

Which of the following is the correct way to redirect the default login and registration page URL to a custom login and registration page URL?

Answer

Correct Answer: add_action('init','possibly_redirect'); function possibly_redirect(){ global $pagenow; if( 'wp-login.php' == $pagenow ) { wp_redirect('Your custom url'); exit(); } }

Explanation:

Note: This Question is unanswered, help us to find answer for this one

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it