the previous one is a fatal error
This commit is contained in:
@@ -28,13 +28,15 @@ 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() {
|
||||
$this->loader->add_action( 'init', $this, 'remove_filters' );
|
||||
|
||||
}
|
||||
|
||||
public function remove_filters() {
|
||||
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() {
|
||||
|
||||
Reference in New Issue
Block a user