|
/ Documentation /Developer Documentation/Filter Hooks/ srfm_payment_history_query_args

srfm_payment_history_query_args

Description

Filters the query args used to fetch a user’s payment history.

Parameters

  • $args (array) – The query args.
  • $user_id (int) – The user ID.

Filter Source

PHP
/**
* filter source (Free) inc/payments/payment-history-shortcode.php
*/
 $args = apply_filters( 'srfm_payment_history_query_args', $args, $user_id );

Filter Usage

PHP
add_filter( 'srfm_payment_history_query_args', 'my_callback', 10, 2 ); 
function my_callback( $args, $user_id ) { 
return $args; 
}

Filter Example

PHP
add_filter( 'srfm_payment_history_query_args', 'my_callback', 10, 2 ); 
function my_callback( $args, $user_id ) { 
return $args; 
}
Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
Table of Contents
Scroll to Top