Remove-Dashboard-Access icon indicating copy to clipboard operation
Remove-Dashboard-Access copied to clipboard

Causing 302 redirect if Paid Memberships Pro is installed

Open YousefJSH opened this issue 7 years ago • 3 comments

Requests to be handled by Paid Memberships Pro are being redirected if Remove Dashboard Access is active at the same time.

YousefJSH avatar Jan 15 '18 05:01 YousefJSH

@YousefJSH Did you find any solution? If yes, could you please share it.

etlam avatar May 14 '18 12:05 etlam

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' );

etlam avatar May 14 '18 13:05 etlam

A related issue: https://wordpress.org/support/topic/post-request-to-admin-post-php/

zackkatz avatar Apr 19 '22 03:04 zackkatz