wpseo_schema_article_potential_action_target

wpseo_schema_article_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_article_potential_action_target') is found 1 times:

  • /src/generators/schema/article.php line 185
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    * Filter: 'wpseo_schema_article_potential_action_target' - Allows filtering of the schema Article potentialAction target.
     *
     * @param array $targets The URLs for the Article potentialAction target.
     */
    $targets = \apply_filters( 'wpseo_schema_article_potential_action_target', [ $this->context->canonical . '#respond' ] );
     
    $data['potentialAction'][] = [
        '@type'  => 'CommentAction',
        'name'   => 'Comment',
        'target' => $targets,
    ];