• 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
  • Store
    • Cart
    • Checkout
  • Blog
    • Basics [Free]
    • Tips and Tricks
    • Filters
    • Actions
    • Code Snippets
    • Shortcodes
    • Design
    • Release Announcements
  • Contact
  • Sign In
  • Show Search
Hide Search
Home » wpmem_exp_after_set_exp

wpmem_exp_after_set_exp

Description

This is an action hook in the PayPal Subscription Extension. It comes at the end of the function wpmem_set_exp which sets the expiration date for the user.  The action passes the user ID and a toggle to tell if it is a new subscription or a subscription renewal.

Parameters

$user_id
(integer)(optional) The user’s database primary key.

$renew
(boolean)(optional) Indicates if this is a renewal or a new subscription.

Changelog

Introduced in extension version 0.4

Source

wpmem_exp_after_set_exp is located in module.php

Usage

add_filter( 'wpmem_exp_after_set_exp' 'do_update_after_exp' );

function do_update_after_exp( $user_id, $renew )
{
	/**
	 * You can use this action to do things immediately after the
	 * user expiration date is set. At this point in the process,
	 * the user has effectively paid.
	 *
	 * $user_id is the user's ID which can be used to update
	 * user meta fields, or to retrieve/update information 
	 * about the user.
	 *
	 * $renew tells you if this is a renewal or a new
	 * subscription.
	 */

	return;
}

Code Snippet Library [Subscriber Content]

  • Configure the PayPal extension for multi-unit pricing
  • Set user expiration to a fixed date
  • Set user forum access when using bbPress with the PayPal subscription extension
See a list of all filter and action hooks

Welcome to RocketGeek Interactive › Forums › wpmem_exp_after_set_exp

  • This topic has 0 replies, 1 voice, and was last updated 6 years, 3 months ago by Chad Butler.
Viewing 0 reply threads
  • Author
    Posts
    • November 2, 2014 at 6:46 pm #6303
      Chad Butler
      Keymaster

      Description This is an action hook in the PayPal Subscription Extension. It comes at the end of the function wpmem_set_exp which sets the expiration d
      [See the full post at: wpmem_exp_after_set_exp]

  • Author
    Posts
Viewing 0 reply threads
  • You must be logged in to reply to this topic.
Log In

Ready to get started?

Join Today!

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

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