Yoast\WP\SEO\User_Profiles_Additions\User_Interface
User_Profiles_Additions_Ui::add_hook_to_user_profile
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() User Profiles Additions Ui::add hook to user profile Yoast 26.7
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>';
}