__get() public method

Magic __get function to dispatch a call to retrieve a private property
Since: 1.0
public __get ( string $key ) : mixed
$key string
return mixed
Esempio n. 1
0
/**
 * Returns the minimum price amount of a form, only enforced for the custom amount input.
 *
 * @since 1.3.6
 *
 * @param int $form_id ID number of the form to retrieve the minimum price for
 *
 * @return mixed string|int Minimum price of the form
 */
function give_get_form_minimum_price($form_id = 0)
{
    if (empty($form_id)) {
        return false;
    }
    $form = new Give_Donate_Form($form_id);
    return $form->__get('minimum_price');
}