From 719712d3d77c013dea7c9901c0623a11a01e9f40 Mon Sep 17 00:00:00 2001 From: savvasha Date: Fri, 7 Apr 2023 17:10:30 +0300 Subject: [PATCH] Add a hook to alter $query args. --- includes/sp-core-functions.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/sp-core-functions.php b/includes/sp-core-functions.php index 0d059264..9ea263d4 100644 --- a/includes/sp-core-functions.php +++ b/includes/sp-core-functions.php @@ -1156,6 +1156,8 @@ if ( ! function_exists( 'sp_post_checklist' ) ) { $query['orderby'] = 'meta_value_num'; $query['order'] = 'ASC'; endif; + // Add a hook to alter $query args. + $query = apply_filters( 'sportspress_sp_post_checklist_args', $query, $meta ); $posts = get_posts( $query ); endif; foreach ( $posts as $post ) :