Retrieve level cost text from all levels.


/**
 * Filter the level cost text, which consists of all levels.
 *
 * @see pmpro_getLevelsCost
 *
 * @param string $r The level text.
 * @param array  $levels Array of level objects.
 * @param bool   $tags   Whether to include HTML tags or not (true or false).
 * @param bool   $short Whether the level text is shortened (true or false).
 *
 * @return string The level cost text.
 */
apply_filters( 'pmpro_levels_cost_text', $r, $levels, $tags, $short );

Parameters

$r
string
$levels
array
$tags
bool
$short
bool

Return Value

string


Source

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

View in Source Code