admin管理员组文章数量:1317131
I'm working on a plugin for a customer with an existing WP site. I added some registration login with add_filter('registration_errors'...)
but the code does not seem to be called. All my other hooks are working fine.
add_filter( 'registration_errors', function($errors, $sanitized_user_login, $user_email) use ($rwlh_config) {
RwlhLogger::Log("\n\nBegin rwlh reg error filter", 'debug');
if(!$errors->get_error_code()) {
$password = $_POST[$rwlh_config['regPasswordField']];
$artistName = $_POST[$rwlh_config['regArtistNameField']];
$errors = rwlh_register( $artistName, $user_email, $password, $errors );
}
return $errors;
}, 10, 3);
Note: Active plugins (see edit history).
本文标签: plugin developmentregistrationerrors filter doesn39t seem to be called
版权声明:本文标题:plugin development - `registration_errors` filter doesn't seem to be called 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742004377a2411661.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论