Filter or change the arguments for displaying membership categories.


See WP_Term_Query for available arguments.

/**
 * Filter the arguments for displaying Membership Categories.
 *
 * @see pmpro_listCategories
 * @see https://developer.wordpress.org/reference/classes/wp_term_query/__construct/
 *
 * @param array $args Array of arguments to display categories.
 *
 * @return array Arguments to display categories.
 */
$cats = get_categories( apply_filters( 'pmpro_list_categories_args', $args ) );

Parameters

$args
array

Return Value

$args


Source

File: https://github.com/strangerstudios/paid-memberships-pro/blob/master/includes/functions.php

View in Source Code