ACF_Form_User::__construct()publicACF 5.0.0

__construct

This function will setup the class functionality

@type    function

{} Это метод класса: ACF_Form_User{}

Хуков нет.

Возвращает

null. Ничего.

Использование

$ACF_Form_User = new ACF_Form_User();
$ACF_Form_User->__construct();

Список изменений

С версии 5.0.0 Введена.

Код ACF_Form_User::__construct() ACF 5.10.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 );
}