WPSEO_Admin_User_Profile::__construct()publicYoast 1.0

Class constructor.

Метод класса: WPSEO_Admin_User_Profile{}

Хуков нет.

Возвращает

null. Ничего.

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

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

Код WPSEO_Admin_User_Profile::__construct() Yoast 19.11

public function __construct() {
	add_action( 'show_user_profile', [ $this, 'user_profile' ] );
	add_action( 'edit_user_profile', [ $this, 'user_profile' ] );
	add_action( 'personal_options_update', [ $this, 'process_user_option_update' ] );
	add_action( 'edit_user_profile_update', [ $this, 'process_user_option_update' ] );

	add_action( 'update_user_meta', [ $this, 'clear_author_sitemap_cache' ], 10, 3 );
}