Yoast\WP\SEO\AI\Consent\Application
Consent_Handler::revoke_consent
Handles consent revoked by deleting the consent user metadata from the database.
Метод класса: Consent_Handler{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$Consent_Handler = new Consent_Handler(); $Consent_Handler->revoke_consent( $user_id );
- $user_id(int) (обязательный)
- The user ID.
Код Consent_Handler::revoke_consent() Consent Handler::revoke consent Yoast 27.7
public function revoke_consent( int $user_id ) {
$this->user_helper->delete_meta( $user_id, '_yoast_wpseo_ai_consent' );
}