Remove-Dashboard-Access
Remove-Dashboard-Access copied to clipboard
Causing 302 redirect if Paid Memberships Pro is installed
Requests to be handled by Paid Memberships Pro are being redirected if Remove Dashboard Access is active at the same time.
@YousefJSH Did you find any solution? If yes, could you please share it.
If the plugin sends forms to admin-post.php the request gets redirected. This can be prevented by adding admin-post.php to the list of allowed pages.
Therefor you can use:
function example_callback( $arrayOfAllowedPages = array() ) {
$arrayOfAllowedPages[] = 'admin-post.php';
return $arrayOfAllowedPages;
}
add_filter( 'rda_allowed_pages', 'example_callback' );
A related issue: https://wordpress.org/support/topic/post-request-to-admin-post-php/