su/slides_query

The shortcodes-ultimate su/slides query hook.

Published Date - February 15, 2021

Description

 $match - result of preg_match - 1: pattern match the subject - 0: pattern does not match the subject - False: error occurred

$query = apply_filters( 'su/slides_query', $query, $args );

Parameters

  1. $query

  2. $args


Usage

The following example is for adding a hook callback.

// define the su/slides_query callback 
function custom_su_slides_query( $query, $args ){ 
   //custom code here
    return $query
} 

//add the action 
add_filter('su/slides_query', 'custom_su/slides_query', 10, 2)

Defined

The filter is defined in the following location(s).

shortcodes-ultimate/includes/functions-galleries.php

$query = apply_filters( 'su/slides_query', $query, $args );