• Skip to primary navigation
  • Skip to main content

RocketGeek

Home of WP-Members, The Original WordPress Membership Plugin

  • WordPress Plugins
    • WP-Members
      • FAQs
      • Quick Start
      • Documentation
      • Extensions
    • Advanced Options
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Download Protect
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Invite Codes
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • MailChimp Integration
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • PayPal Subscriptions
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Salesforce Web-to-Lead
    • Security
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Text Editor
      • Purchase the Plugin
      • Get the Pro Bundle
    • User List
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • User Tracking
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Memberships for WooCommerce
    • WordPass
  • Blog
    • Basics
    • Tips and Tricks
    • Filters
    • Actions
    • Code Snippets
    • Shortcodes
    • Design
    • Release Announcements
  • Store
    • Cart
    • Checkout
  • Contact
  • Log In
  • Show Search
Hide Search
Home » Plugins » WP-Members » Documentation » Filter Hooks » wpmem_exp_experiod

wpmem_exp_experiod

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

Ready to get started?

Join Today!

© 2025 · butlerblog.com · RocketGeek is built using WordPress, WP-Members, and the Genesis Framework

  • butlerblog.com
  • WP-Members Support Subscription
  • Terms of Service
  • Privacy Policy
  • Refund Policy