Skip to content

Commit

Permalink
Edit PHPDocs for the new filter
Browse files Browse the repository at this point in the history
  • Loading branch information
rbcorrales committed Jan 25, 2024
1 parent 3bf6b5a commit 41f7744
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions msm-sitemap.php
Expand Up @@ -619,10 +619,11 @@ public static function get_last_modified_posts() {

/**
* Filter the query used to get the last modified posts.
* $wpdb->prepare() should be used for security if a new replacement query is created in the callback.
*
* @param string|null $query The query to use to get the last modified posts.
* @param string $query The query to use to get the last modified posts.
* @param string $post_types_in A comma-separated list of post types to include in the query.
* @param string $date The date to use as the cutoff for the query.
* @param string $date The date to use as the cutoff for the query.
*/
$query = apply_filters( 'msm_pre_get_last_modified_posts', $query, $post_types_in, $date );

Expand Down

0 comments on commit 41f7744

Please sign in to comment.