wpseo_user_profile_additions
Fires in the user profile.
Использование
add_action( 'wpseo_user_profile_additions', 'wp_kama_wpseo_user_profile_additions_action' );
/**
* Function for `wpseo_user_profile_additions` action-hook.
*
* @param WP_User $user The current WP_User object.
*
* @return void
*/
function wp_kama_wpseo_user_profile_additions_action( $user ){
// action...
}
- $user(WP_User)
- The current WP_User object.
Где вызывается хук
wpseo_user_profile_additions
yoast/src/user-profiles-additions/user-interface/user-profiles-additions-ui.php 91
\do_action( 'wpseo_user_profile_additions', $user );
Где используется хук в Yoast SEO
yoast/src/ai-consent/user-interface/ai-consent-integration.php 73
\add_action( 'wpseo_user_profile_additions', [ $this, 'render_user_profile' ], 12 );