Server IP : 170.150.155.74 / Your IP : 3.15.7.189 Web Server : Apache/2.4.53 (Debian) System : Linux b22bf132354b 5.4.0-162-generic #179-Ubuntu SMP Mon Aug 14 08:51:31 UTC 2023 x86_64 User : www-data ( 33) PHP Version : 7.4.29 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/html/wp-content/plugins/wordpress-seo/src/helpers/schema/ |
Upload File : |
<?php namespace Yoast\WP\SEO\Helpers\Schema; use Yoast\WP\SEO\Config\Schema_IDs; use Yoast\WP\SEO\Context\Meta_Tags_Context; /** * Schema utility functions. */ class ID_Helper { /** * Retrieve a users Schema ID. * * @param int $user_id The ID of the User you need a Schema ID for. * @param Meta_Tags_Context $context A value object with context variables. * * @return string The user's schema ID. */ public function get_user_schema_id( $user_id, $context ) { $user = \get_userdata( $user_id ); if ( \is_a( $user, 'WP_User' ) ) { return $context->site_url . Schema_IDs::PERSON_HASH . \wp_hash( $user->user_login . $user_id ); } return ''; } }