# blockslider\_query\_args

## Arguments

| Argument | Type  | Description                                                                                                             |
| -------- | ----- | ----------------------------------------------------------------------------------------------------------------------- |
| `$args`  | array | Array of list of arguments supported by [WP\_Query](https://developer.wordpress.org/reference/classes/wp_query/) class. |
| `$query` | array | Query attribute constructed from the block slider block.                                                                |

## Available Since

version **2.1.4**

## Example

The following code snippet demonstrate a simple use case regarding how developers can change maximum posts a query slider can ever get.

```php
add_filter( 'blockslider_query_args', function( $args, $query ) {
    $args['posts_per_page'] = 20;
    return $args;
}, 10, 2 );
```
