Block Slider
HomeGet Now
  • 👋Block Slider
  • ⚙️Configuration
    • 1️⃣Keyboard Navigation
    • 2️⃣Mouse Drag
    • 3️⃣Speed
    • 4️⃣Slide Effect
    • 5️⃣Slide Per View
    • 6️⃣Space Between
    • 7️⃣Loop
    • 8️⃣Autoplay
    • 9️⃣Pagination
    • 🔟Navigation
  • 📔Guides
    • 🖌️Design
    • 💻Using a responsive control
    • 👀Using the visibility control
    • 🌟Using block slider presets
    • 😍Block slider with page builders
    • 🔍How to use Query Slider
    • 🛒How to create WooCommerce Product Slider
  • 🧰Hooks and Filters
    • 1️⃣blockslider_query_args
  • 🎮Controller Blocks
    • 🤩Thumbnails Controller Block
Powered by GitBook
On this page
  • Arguments
  • Available Since
  • Example
  1. Hooks and Filters

blockslider_query_args

"blockslider_query_args" filter allows you to modify the block slider query before being processed by the query slider.

PreviousHooks and FiltersNextController Blocks

Last updated 1 year ago

Arguments

Argument
Type
Description

$args

array

Array of list of arguments supported by 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.

add_filter( 'blockslider_query_args', function( $args, $query ) {
    $args['posts_per_page'] = 20;
    return $args;
}, 10, 2 );
🧰
1️⃣
WP_Query