D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
ltfsolutionsco
/
www
/
wp-content
/
plugins
/
wordpress-seo
/
src
/
helpers
/
schema
/
Filename :
id-helper.php
back
Copy
<?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 ''; } }
Name
Size
Last Modified
Owner
Permissions
Actions
article-helper.php
0.856
KB
February 03 2024 2:12:24
ltfsolutionsco
0644
html-helper.php
1.979
KB
February 03 2024 2:12:24
ltfsolutionsco
0644
id-helper.php
0.675
KB
February 03 2024 2:12:24
ltfsolutionsco
0644
image-helper.php
6.018
KB
February 03 2024 2:12:24
ltfsolutionsco
0644
language-helper.php
0.848
KB
February 03 2024 2:12:24
ltfsolutionsco
0644
replace-vars-helper.php
3.488
KB
February 03 2024 2:12:24
ltfsolutionsco
0644
2017 © D7net | D704T team