ACF_Form_User::__constructpublicACF 5.0.0

__construct

This function will setup the class functionality

Method of the class: ACF_Form_User{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

Changelog

Since 5.0.0 Introduced.

ACF_Form_User::__construct() code ACF 6.0.4

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 );
}