previous one didnt work, maybe this

This commit is contained in:
2026-03-14 13:42:19 +01:00
parent 4809603a2f
commit fb08e2adad
2 changed files with 17 additions and 22 deletions

View File

@@ -28,6 +28,13 @@ class Partnerexpo_Core_User_Fields extends Partnerexpo_Core {
$this->loader->add_filter( 'registration_errors', $this, 'registration_errors', 10, 3 );
$this->loader->add_filter( 'comment_post', $this, 'validate_comment' );
$this->loader->add_action( 'init', function() {
remove_all_filters('comment_form_defaults');
remove_all_filters('comment_form_top');
remove_all_filters('comment_form_before');
remove_all_filters('comment_form_after');
} );
}
public function add_user_new_fields() {