Add a hook to alter $query args.
This commit is contained in:
@@ -1156,6 +1156,8 @@ if ( ! function_exists( 'sp_post_checklist' ) ) {
|
|||||||
$query['orderby'] = 'meta_value_num';
|
$query['orderby'] = 'meta_value_num';
|
||||||
$query['order'] = 'ASC';
|
$query['order'] = 'ASC';
|
||||||
endif;
|
endif;
|
||||||
|
// Add a hook to alter $query args.
|
||||||
|
$query = apply_filters( 'sportspress_sp_post_checklist_args', $query, $meta );
|
||||||
$posts = get_posts( $query );
|
$posts = get_posts( $query );
|
||||||
endif;
|
endif;
|
||||||
foreach ( $posts as $post ) :
|
foreach ( $posts as $post ) :
|
||||||
|
|||||||
Reference in New Issue
Block a user