What you want is a simple endpoint, use add_rewrite_enpoint
instead of adding a rule and query var.
function wpd_author_endpoint(){
add_rewrite_endpoint( 'pending', EP_AUTHORS );
}
add_action( 'init', 'wpd_author_endpoint' );
What you want is a simple endpoint, use add_rewrite_enpoint
instead of adding a rule and query var.
function wpd_author_endpoint(){
add_rewrite_endpoint( 'pending', EP_AUTHORS );
}
add_action( 'init', 'wpd_author_endpoint' );