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

apply_filters('wpseo_schema_webpage_potential_action_target') is found 1 times:

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