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['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 ) :
|
||||
|
||||
Reference in New Issue
Block a user