Description
Filters the settings for the subscription period.
Parameters
$exp_arr
(array) (required) An array of setting values.
$renew
(string) (optional) Indicates this is a renewal.
Changelog
Introduced in versionĀ 0.3.0
Source
wpmem_exp_experiod is located in module.php
Usage
add_filter( 'wpmem_exp_experiod', 'my_experiod', 10, 2 ); function my_experiod( $exp_arr, $renew ) { /* * $exp_arr is an array of values for the * subscription with the following keys * (values are for example - they will * be whatever values are set in the * exentsion's settings): */ $exp_arr['subscription_num'] = 1; $exp_arr['subscription_per'] = 'month'; $exp_arr['subscription_cost'] = '10.00'; $exp_arr['subscription_name'] = 'My Subscription'; $exp_arr['trial_num'] = '3'; $exp_arr['trial_per'] = 'day'; $exp_arr['trial_cost'] = '0.00'; $exp_arr['trial_name'] = 'My Trial'; $exp_arr['currency'] = 'USD'; return $exp_arr; }
See a list of all filter and action hooks