| 1 |
<?php |
| 2 |
// Exit if accessed directly |
| 3 |
if ( ! defined( 'ABSPATH' ) ) exit; |
| 4 |
|
| 5 |
add_action ('user_profile_update_errors', 'wppb_toolbox_remove_backend_profile_validation', 5); |
| 6 |
function wppb_toolbox_remove_backend_profile_validation(){ |
| 7 |
// old |
| 8 |
remove_action( 'user_profile_update_errors', 'wppb_validate_backend_fields', 10, 3); |
| 9 |
|
| 10 |
// new |
| 11 |
remove_action( 'user_profile_update_errors', 'wppb_validate_fields_in_admin', 10, 3); |
| 12 |
} |
| 13 |
|