fixed syntax
This commit is contained in:
@@ -18,13 +18,13 @@ class Partnerexpo_Core_User_Fields extends Partnerexpo_Core {
|
||||
}
|
||||
|
||||
private function activate_fields() {
|
||||
$this->loader->add_action( 'show_user_profile', [$this, 'add_custom_user_fields'] );
|
||||
$this->loader->add_action( 'edit_user_profile', [$this, 'add_custom_user_fields'] );
|
||||
$this->loader->add_action( 'personal_options_update', [$this, 'save_custom_user_fields'] );
|
||||
$this->loader->add_action( 'edit_user_profile_update', [$this, 'save_custom_user_fields'] );
|
||||
$this->loader->add_action( 'user_register', [$this, 'add_value_after_reg'] );
|
||||
$this->loader->add_action( 'register_form', [ $this, 'registration_form' ] );
|
||||
$this->loader->add_filter( 'registration_errors', [ $this, 'registration_errors' ], 10, 3 );
|
||||
$this->loader->add_action( 'show_user_profile', $this, 'add_custom_user_fields' );
|
||||
$this->loader->add_action( 'edit_user_profile', $this, 'add_custom_user_fields' );
|
||||
$this->loader->add_action( 'personal_options_update', $this, 'save_custom_user_fields' );
|
||||
$this->loader->add_action( 'edit_user_profile_update', $this, 'save_custom_user_fields' );
|
||||
$this->loader->add_action( 'user_register', $this, 'add_value_after_reg' );
|
||||
$this->loader->add_action( 'register_form', $this, 'registration_form' );
|
||||
$this->loader->add_filter( 'registration_errors', $this, 'registration_errors', 10, 3 );
|
||||
}
|
||||
|
||||
public function add_custom_user_fields( $user ) {
|
||||
|
||||
Reference in New Issue
Block a user