updated plugin GP Premium
version 1.10.0
This commit is contained in:
@ -23,10 +23,15 @@ function generate_premium_do_elements() {
|
||||
'post_status' => 'publish',
|
||||
'numberposts' => 500,
|
||||
'fields' => 'ids',
|
||||
'order' => 'ASC',
|
||||
'suppress_filters' => false,
|
||||
);
|
||||
|
||||
$custom_args = apply_filters( 'generate_elements_custom_args', array(
|
||||
'order' => 'ASC',
|
||||
) );
|
||||
|
||||
$args = array_merge( $args, $custom_args );
|
||||
|
||||
// Prevent Polylang from altering the query.
|
||||
if ( function_exists( 'pll_get_post_language' ) ) {
|
||||
$args['lang'] = '';
|
||||
|
Reference in New Issue
Block a user