wpseo_schema_person_user_id

wpseo_schema_person_user_id

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-seo.23.9

apply_filters('wpseo_schema_person_user_id') is found 2 times:

  • /src/generators/schema/author.php line 87
    		 * Filter: 'wpseo_schema_person_user_id' - Allows filtering of user ID used for person output.
    		 *
    		 * @param int|bool $user_id The user ID currently determined.
    		 */
    		$user_id = \apply_filters( 'wpseo_schema_person_user_id', $user_id );
    
    		if ( \is_int( $user_id ) && $user_id > 0 ) {
    			return $user_id;
    		}
    
    		return false;
    
  • /src/generators/schema/person.php line 77
    		 * Filter: 'wpseo_schema_person_user_id' - Allows filtering of user ID used for person output.
    		 *
    		 * @param int|bool $user_id The user ID currently determined.
    		 */
    		$user_id = \apply_filters( 'wpseo_schema_person_user_id', $this->context->site_user_id );
    
    		// It should to be an integer higher than 0.
    		if ( \is_int( $user_id ) && $user_id > 0 ) {
    			return $user_id;
    		}