We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new function in Helpers. Also parse CRP_Query to allow for all WP_Query parameters
/** * Parse WP_Query variables to parse comma separated list of IDs and convert them to arrays as needed by WP_Query. * * @param array $query_vars Defined query variables. * @return array Complete query variables with undefined ones filled in empty. */ public static function parse_wp_query_arguments( $query_vars ) { $array_keys = array( 'category__in', 'category__not_in', 'category__and', 'post__in', 'post__not_in', 'post_name__in', 'tag__in', 'tag__not_in', 'tag__and', 'tag_slug__in', 'tag_slug__and', 'post_parent__in', 'post_parent__not_in', 'author__in', 'author__not_in', ); foreach ( $array_keys as $key ) { if ( isset( $query_vars[ $key ] ) ) { $query_vars[ $key ] = wp_parse_list( $query_vars[ $key ] ); } } return $query_vars; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Add new function in Helpers. Also parse CRP_Query to allow for all WP_Query parameters
The text was updated successfully, but these errors were encountered: