su/shortcode/posts/wp_query_args

The shortcodes-ultimate su/shortcode/posts/wp query args hook.

Published Date - February 15, 2021

Description

$args = apply_filters( 'su/shortcode/posts/wp_query_args', $args, $atts );

Parameters

  1. $args

  2. $atts


Usage

The following example is for adding a hook callback.

// define the su/shortcode/posts/wp_query_args callback 
function custom_su_shortcode_posts_wp_query_args( $args, $atts ){ 
   //custom code here
    return $args
} 

//add the action 
add_filter('su/shortcode/posts/wp_query_args', 'custom_su/shortcode/posts/wp_query_args', 10, 2)

Defined

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

shortcodes-ultimate/includes/shortcodes/posts.php

$args = apply_filters( 'su/shortcode/posts/wp_query_args', $args, $atts );