su/shortcode/display_posts/query

The shortcodes-ultimate su/shortcode/display posts/query hook.

Published Date - February 15, 2021

Description

$query = apply_filters( 'su/shortcode/display_posts/query', $query, $atts, $raw );

Parameters

  1. $query

  2. $atts

  3. $raw


Usage

The following example is for adding a hook callback.

// define the su/shortcode/display_posts/query callback 
function custom_su_shortcode_display_posts_query( $query, $atts, $raw ){ 
   //custom code here
    return $query
} 

//add the action 
add_filter('su/shortcode/display_posts/query', 'custom_su/shortcode/display_posts/query', 10, 3)

Defined

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

shortcodes-ultimate/includes/shortcodes/display-posts.php

$query = apply_filters( 'su/shortcode/display_posts/query', $query, $atts, $raw );