the previous one is a fatal error
This commit is contained in:
@@ -28,15 +28,17 @@ class Partnerexpo_Core_User_Fields extends Partnerexpo_Core {
|
|||||||
$this->loader->add_filter( 'registration_errors', $this, 'registration_errors', 10, 3 );
|
$this->loader->add_filter( 'registration_errors', $this, 'registration_errors', 10, 3 );
|
||||||
$this->loader->add_filter( 'comment_post', $this, 'validate_comment' );
|
$this->loader->add_filter( 'comment_post', $this, 'validate_comment' );
|
||||||
|
|
||||||
$this->loader->add_action( 'init', function() {
|
$this->loader->add_action( 'init', $this, '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 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() {
|
public function add_user_new_fields() {
|
||||||
wp_enqueue_media();
|
wp_enqueue_media();
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user