I need to add few extra whistles to registration & default doesn’t let me to add them (or I just haven’t found a way).
So I make my own action:
1. I use admin_url('admin-post.php?action=register_user');
as an action in register form.
2. All I need to do is add add_action('admin_post_nopriv_register_user', 'rr_register_user');
& according function both to functions.php or make a plugin.
Exception inputs would be nice to have in settings where you can choose what URLs would this plugin avoid (whole URL with directories, query strings & everything so that it wouldn’t avoid blocking similar requests by accident).
Question is if there should be few inputs or one with “add new” button that requires some hassle with JS/jQuery/ajax but would be much more flexible.
It would be great feature because that’s the only reason all “hide login” plugins suck in my opinion – it takes some functionality away from WP.
Not sure how this plugin works & Im not very experienced but just a basic idea:
$exceptions = ( 'first-input' , 'second-input' , 'and-so-on' );
if( ! in_array( $_SERVER['REQUEST URI'] , $exceptions ) ) {
//do the stuff that this amazing plugin does
}
Let me know what you think about that kind of feature.
Cheers!