Yoast\WP\SEO\Abilities\User_Interface
Abilities_Integration::can_edit_advanced_metadata
Checks whether the current user can edit advanced SEO metadata.
Gates the post SEO data abilities on the same capability that gates the advanced and schema fields in the editors, so the abilities can never grant a field the editor UI denies. The capability helper also passes wpseo_manage_options holders. Per-post edit access is enforced on top, in the execute callbacks.
Метод класса: Abilities_Integration{}
Хуков нет.
Возвращает
true|false. Whether the current user can edit advanced SEO metadata.
Использование
$Abilities_Integration = new Abilities_Integration(); $Abilities_Integration->can_edit_advanced_metadata(): bool;
Код Abilities_Integration::can_edit_advanced_metadata() Abilities Integration::can edit advanced metadata Yoast 28.3
public function can_edit_advanced_metadata(): bool {
return $this->capability_helper->current_user_can( 'wpseo_edit_advanced_metadata' );
}