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

apply_filters('wpseo_posts_for_related_keywords') is found 1 times:

  • /src/editors/framework/seo/posts/keyphrase-data-provider.php line 48
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
         *
         * @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.