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

apply_filters('wpseo_schema_article_potential_action_target') is found 1 times:

  • /src/generators/schema/article.php line 181
    		 * 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,
    		];