diff --git a/includes/class-partnerexpo-core-user-fields.php b/includes/class-partnerexpo-core-user-fields.php index 3396adb..5aa2dac 100644 --- a/includes/class-partnerexpo-core-user-fields.php +++ b/includes/class-partnerexpo-core-user-fields.php @@ -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 ) {