Yoast\WP\SEO\User_Profiles_Additions\User_Interface

User_Profiles_Additions_Ui::add_hook_to_user_profile()publicYoast 1.0

Add the inputs needed for SEO values to the User Profile page.

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

Хуки из метода

Возвращает

null. Ничего (null).

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

$User_Profiles_Additions_Ui = new User_Profiles_Additions_Ui();
$User_Profiles_Additions_Ui->add_hook_to_user_profile( $user );
$user(WP_User) (обязательный)
User instance to output for.

Код User_Profiles_Additions_Ui::add_hook_to_user_profile() Yoast 24.4

public function add_hook_to_user_profile( $user ) {
	$this->enqueue_assets();
	echo '<div class="yoast yoast-settings">';

	/**
	 * Fires in the user profile.
	 *
	 * @internal
	 *
	 * @param WP_User $user The current WP_User object.
	 */
	\do_action( 'wpseo_user_profile_additions', $user );
	echo '</div>';
}