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.24.8.1

apply_filters('wpseo_schema_person_user_id') is found 2 times:

  • /src/generators/schema/author.php line 87
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    * 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
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    * 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;
    }