Yoast\WP\SEO\Abilities\Infrastructure
Author_Schema_Field_Map::get_default_fields
Returns the author schema fields of Yoast SEO.
Метод класса: Author_Schema_Field_Map{}
Хуков нет.
Возвращает
array<string,. array<string, mixed>> The JSON schema of each field, keyed by user meta key.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_default_fields(): array;
Код Author_Schema_Field_Map::get_default_fields() Author Schema Field Map::get default fields Yoast 28.9
protected function get_default_fields(): array {
return [
'wpseo_pronouns' => [
'type' => 'string',
'description' => $this->get_pronouns_description(),
'validate_callback' => [ $this, 'validate_pronouns' ],
],
'facebook' => [
'type' => 'string',
'description' => \__( 'The URL of the user\'s Facebook profile. It is also used as the article author in the Open Graph meta tags of the user\'s posts.', 'wordpress-seo' ),
],
'instagram' => [
'type' => 'string',
'description' => \__( 'The URL of the user\'s Instagram profile.', 'wordpress-seo' ),
],
'linkedin' => [
'type' => 'string',
'description' => \__( 'The URL of the user\'s LinkedIn profile.', 'wordpress-seo' ),
],
'myspace' => [
'type' => 'string',
'description' => \__( 'The URL of the user\'s MySpace profile.', 'wordpress-seo' ),
],
'pinterest' => [
'type' => 'string',
'description' => \__( 'The URL of the user\'s Pinterest profile.', 'wordpress-seo' ),
],
'soundcloud' => [
'type' => 'string',
'description' => \__( 'The URL of the user\'s SoundCloud profile.', 'wordpress-seo' ),
],
'tumblr' => [
'type' => 'string',
'description' => \__( 'The URL of the user\'s Tumblr profile.', 'wordpress-seo' ),
],
'twitter' => [
'type' => 'string',
'description' => \__( 'The X username of the user. A leading @ is removed, and an X profile URL is also accepted and saved as the username. It is also used in the X card meta tags: as the creator of the user\'s posts, and as the site\'s X account when the site represents this user.', 'wordpress-seo' ),
],
'youtube' => [
'type' => 'string',
'description' => \__( 'The URL of the user\'s YouTube channel.', 'wordpress-seo' ),
],
'wikipedia' => [
'type' => 'string',
'description' => \__( 'The URL of the Wikipedia page about the user.', 'wordpress-seo' ),
],
];
}