wpseo_schema_webpage_potential_action_target

wpseo_schema_webpage_potential_action_target

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

See hook in core

Displaying hooks found in version: wordpress-seo.24.8.1

apply_filters('wpseo_schema_webpage_potential_action_target') is found 1 times:

  • /src/generators/schema/webpage.php line 148
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    * Filter: 'wpseo_schema_webpage_potential_action_target' - Allows filtering of the schema WebPage potentialAction target.
     *
     * @param array<string> $targets The URLs for the WebPage potentialAction target.
     */
    $targets = \apply_filters( 'wpseo_schema_webpage_potential_action_target', [ $url ] );
     
    $data['potentialAction'][] = [
        '@type'  => 'ReadAction',
        'target' => $targets,
    ];