Add filter into ajax_handler processor
-
Hey, Mike, how are you doing?
I have one small request to add filter function into your good plugin. This is inside of Plugin.php line 111:
Diffs are next:
--- a/web/wp-content/plugins/sidebar-login/src/Plugin.php +++ b/web/wp-content/plugins/sidebar-login/src/Plugin.php @@ -108,7 +108,7 @@ class Plugin { $secure_cookie = true; } - $user = wp_signon( $credentials, $secure_cookie ); + $user = wp_signon( apply_filters('sidebar_login_signon_credentials', $credentials), $secure_cookie ); if ( $secure_cookie && strstr( $redirect_to, 'wp-admin' ) ) { $redirect_to = str_replace( 'http:', 'https:', $redirect_to );
Thanks in advance
- The topic ‘Add filter into ajax_handler processor’ is closed to new replies.