Description

This filter is used to change the arguments passed to WP_Query before Conductor_Widget_Default_Query executes the query.

This filter is executed when the Conductor_Widget::widget() function is called (when a Conductor Widget is displayed, right before the query is initialized).

Technical Details

  • Type: Filter
  • Parameters:
    • $query_args (array): Query arguments to be passed into WP_Query
    • $type (string): Type of query (will always be "many" in this case, "single" queries will call get_post())
    • $instance (array): Conductor Widget instance (settings)
    • $conductor_widget_query (Conductor_Widget_Default_Query): Conductor_Widget_Default_Query Instance
  • Return Value: array

Resources

Examples

The following example adjusts the posts_per_page parameter in WP_Query arguments for Conductor_Widget_Default_Query instances based on a CSS class.