wpseo_posts_for_related_keywords

wpseo_posts_for_related_keywords

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

See hook in core

Displaying hooks found in version: wordpress-seo.23.9

apply_filters('wpseo_posts_for_related_keywords') is found 1 times:

  • /src/editors/framework/seo/posts/keyphrase-data-provider.php line 48
    		 *
    		 * @param array<string> $usage   The array of posts' ids that share their focus Keyphrase with the post.
    		 * @param int           $post_id The id of the post we're finding the usage of related Keyphrase for.
    		 */
    		return \apply_filters( 'wpseo_posts_for_related_keywords', $usage, $this->post->ID );
    	}
    
    	/**
    	 * Retrieves the post types for the given post IDs.
    	 *
    	 * @param array<string|array<string>> $post_ids_per_keyphrase An associative array with keyphrase as keys and an array of post ids where those keyphrases are used.