Yoast\WP\SEO\AI\Consent\User_Interface
Ai_Consent_Integration::register_hooks
Initializes the integration.
This is the place to register hooks and filters.
Метод класса: Ai_Consent_Integration{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$Ai_Consent_Integration = new Ai_Consent_Integration(); $Ai_Consent_Integration->register_hooks();
Код Ai_Consent_Integration::register_hooks() Ai Consent Integration::register hooks Yoast 28.3
public function register_hooks() {
// Hide AI feature option in user profile if the user is not allowed to use it.
if ( \current_user_can( 'edit_posts' ) ) {
\add_action( 'wpseo_user_profile_additions', [ $this, 'render_user_profile' ], 12 );
}
\add_action( 'admin_enqueue_scripts', [ $this, 'enqueue_assets' ], 11 );
}