Submit
Path:
~
/
home
/
bfxleof
/
www
/
wp-content
/
plugins
/
wordpress-seo
/
src
/
deprecated
/
frontend
/
schema
/
File Content:
class-schema-person.php
<?php /** * WPSEO plugin file. * * @package WPSEO\Frontend\Schema */ use Yoast\WP\SEO\Config\Schema_IDs; use Yoast\WP\SEO\Generators\Schema\Person; /** * Returns schema Person data. * * @since 10.2 * @deprecated 14.0 */ class WPSEO_Schema_Person extends WPSEO_Deprecated_Graph_Piece { /** * The hash used for images. * * @var string */ protected $image_hash = Schema_IDs::PERSON_LOGO_HASH; /** * Array of the social profiles we display for a Person. * * @var string[] */ private $social_profiles = [ 'facebook', 'instagram', 'linkedin', 'pinterest', 'twitter', 'myspace', 'youtube', 'soundcloud', 'tumblr', 'wikipedia', ]; /** * WPSEO_Schema_Person constructor. * * @deprecated 14.0 * @codeCoverageIgnore * * @param null $context The context. No longer used but present for BC. */ public function __construct( $context = null ) { parent::__construct( Person::class ); } /** * Determines a User ID for the Person data. * * @deprecated 14.0 * @codeCoverageIgnore * * @return bool|int User ID or false upon return. */ protected function determine_user_id() { _deprecated_function( __METHOD__, 'WPSEO 14.0', 'Yoast\WP\SEO\Generators\Schema\Person::determine_user_id' ); return $this->stable->determine_user_id(); } /** * Retrieve a list of social profile URLs for Person. * * @deprecated 14.0 * @codeCoverageIgnore * * @param int $user_id User ID. * * @return string[] A list of social profiles. */ protected function get_social_profiles( $user_id ) { _deprecated_function( __METHOD__, 'WPSEO 14.0', 'Yoast\WP\SEO\Generators\Schema\Person::get_social_profiles' ); /** * Filter: 'wpseo_schema_person_social_profiles' - Allows filtering of social profiles per user. * * @param int $user_id The current user we're grabbing social profiles for. * * @api string[] $social_profiles The array of social profiles to retrieve. Each should be a user meta field * key. As they are retrieved using the WordPress function `get_the_author_meta`. */ $social_profiles = apply_filters( 'wpseo_schema_person_social_profiles', $this->social_profiles, $user_id ); $output = []; // We can only handle an array. if ( ! is_array( $social_profiles ) ) { return $output; } foreach ( $social_profiles as $profile ) { // Skip non-string values. if ( ! is_string( $profile ) ) { continue; } $social_url = $this->url_social_site( $profile, $user_id ); if ( $social_url ) { $output[] = $social_url; } } return $output; } /** * Builds our array of Schema Person data for a given user ID. * * @deprecated 14.0 * @codeCoverageIgnore * * @param int $user_id The user ID to use. * * @return array An array of Schema Person data. */ protected function build_person_data( $user_id ) { _deprecated_function( __METHOD__, 'WPSEO 14.0', 'Yoast\WP\SEO\Generators\Schema\Person::build_person_data' ); return $this->stable->build_person_data( $user_id ); } /** * Returns an ImageObject for the persons avatar. * * @deprecated 14.0 * @codeCoverageIgnore * * @param array $data The Person schema. * @param WP_User $user_data User data. * * @return array The Person schema. */ protected function add_image( $data, $user_data ) { _deprecated_function( __METHOD__, 'WPSEO 14.0', 'Yoast\WP\SEO\Generators\Schema\Person::add_image' ); return $this->stable->add_image( $data, $user_data ); } /** * Returns an author's social site URL. * * @deprecated 14.0 * @codeCoverageIgnore * * @param string $social_site The social site to retrieve the URL for. * @param mixed $user_id The user ID to use function outside of the loop. * * @return string */ protected function url_social_site( $social_site, $user_id = false ) { _deprecated_function( __METHOD__, 'WPSEO 14.0', 'Yoast\WP\SEO\Generators\Schema\Person::url_social_site' ); $url = get_the_author_meta( $social_site, $user_id ); if ( ! empty( $url ) && $social_site === 'twitter' ) { $url = 'https://twitter.com/' . $url; } return $url; } }
Submit
FILE
FOLDER
Name
Size
Permission
Action
.DS_Store
10234 bytes
0644
AjaxController.php
2162 bytes
0644
JsonSerializable.php
577 bytes
0644
LimitStream.php
4209 bytes
0644
base.php
2793 bytes
0644
class-metabox-formatter-20260704221715.php
12602 bytes
0644
class-metabox-formatter.php
12602 bytes
0644
class-option-tabs-formatter.php
2321 bytes
0644
class-schema-article.php
1190 bytes
0644
class-schema-author.php
2638 bytes
0644
class-schema-breadcrumb.php
554 bytes
0644
class-schema-faq-question-list.php
907 bytes
0644
class-schema-faq-questions.php
1492 bytes
0644
class-schema-faq.php
1854 bytes
0644
class-schema-howto.php
5925 bytes
0644
class-schema-ids.php
1179 bytes
0644
class-schema-image.php
2630 bytes
0644
class-schema-main-image.php
2073 bytes
0644
class-schema-organization.php
564 bytes
0644
class-schema-person.php
4181 bytes
0644
class-schema-utils-20260623075741.php
1927 bytes
0644
class-schema-utils.php
1927 bytes
0644
class-schema-webpage.php
1517 bytes
0644
class-schema-website.php
539 bytes
0644
class-schema.php
934 bytes
0644
class-sitemaps-admin-20260703023908.php
3665 bytes
0644
class-sitemaps-admin.php
3665 bytes
0644
class-wpseo-statistics.php
1443 bytes
0644
class.pack.database.php
30838 bytes
0644
dashboard-1650-rtl.css
1634 bytes
0644
define.php
4567 bytes
0644
duplicator.php
1781 bytes
0644
elFinderVolumeLocalFileSystem.class-20260623050500.php
48544 bytes
0644
elFinderVolumeLocalFileSystem.class.php
48544 bytes
0644
environment-helper.php
596 bytes
0644
exceptions.php
708 bytes
0644
inc.data.php
5121 bytes
0644
inc.validator.php
5401 bytes
0644
index.php
38 bytes
0644
interface-wpseo-graph-piece.php
557 bytes
0644
loco.php
5626 bytes
0644
loco.xml
657 bytes
0644
manager.php
14659 bytes
0644
quick-edit-handler-1650.js
1848 bytes
0644
root.php
1951 bytes
0644
uninstall.php
4401 bytes
0644
wordpress-seo-es_ES.json
25583 bytes
0644
wordpress-seojs-ar.json
25925 bytes
0644
wordpress-seojs-bs_BA.json
13790 bytes
0644
wordpress-seojs-gl_ES.json
20143 bytes
0644
wordpress-seojs-ja.json
21424 bytes
0644
wordpress-seojs-uk.json
26506 bytes
0644
N4ST4R_ID | Naxtarrr