ACF_Form_User::__construct
This function will setup the class functionality
Метод класса: ACF_Form_User{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$ACF_Form_User = new ACF_Form_User(); $ACF_Form_User->__construct();
Список изменений
| С версии 5.0.0 | Введена. |
Код ACF_Form_User::__construct() ACF Form User:: construct ACF 6.4.2
function __construct() {
// enqueue
add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
add_action( 'login_form_register', array( $this, 'login_form_register' ) );
// render
add_action( 'show_user_profile', array( $this, 'render_edit' ) );
add_action( 'edit_user_profile', array( $this, 'render_edit' ) );
add_action( 'user_new_form', array( $this, 'render_new' ) );
add_action( 'register_form', array( $this, 'render_register' ) );
// save
add_action( 'user_register', array( $this, 'save_user' ) );
add_action( 'profile_update', array( $this, 'save_user' ) );
// Perform validation before new user is registered.
add_filter( 'registration_errors', array( $this, 'filter_registration_errors' ), 10, 3 );
}