• 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 » Search for "short code"

Search Results for: short code

wpmem_ic_code_used

Description

Fires after an invite code has been used for registration.

Parameters

$code_info
(array) An array of details of the code used.

“code_id” | integer | The invite code’s database primary key ID
“user_id” | integer | The user ID of the user
“invite_code” | string | The invite code used to register
“date_used | string | The date the code was used as MySQL timestamp (in string format)

Usage

add_action( 'wpmem_ic_code_used', function( $code_info ) {
    
    // The user ID is in the $code_info array.
    $user_id = $code_info['user_id'];
    
    // What is the slug of the membership to assign?
    $membership = "my-invite-only-membership";
    
    // Assign the membership to the user.
    wpmem_set_user_membership( $membership, $user_id );
    
});

Changelog

  • Introduced in 2.0.0

Source

wpmem_ic_code_used is located in includes/class-wp-members-invite-codes.php

Using Code Snippets from the Site

Chad Butler · Sep 30, 2015 ·

This article is provided free. Find out how you can get full access to premium content, including how-to articles and support forums, as well as priority email support and member exclusive plugin extensions..

 

When copying code snippets from the site, it is important to copy clean code.  This article discusses where to put it, how to copy it, how to read comments and where to make modifications.  There are also some best practices to follow.

Continue Reading →

WP-Members 3.5.5 Release Notes

Chad Butler · Dec 24, 2025 ·

This article is provided free. Find out how you can get full access to premium content, including how-to articles and support forums, as well as priority email support and member exclusive plugin extensions..

 

The WP-Members 3.5.5 release is primarily a feature update moving towards 3.6. There are also some bug fixes and security updates.

Get the WP-Members 3.5.5 beta release candidate here.

Continue Reading →

Add last name letter linkbar to User List

Chad Butler · Dec 8, 2025 ·

Continue Reading →

How to change submit button text when using WP-Members Security with WP password strength meter

Chad Butler · Jul 5, 2025 ·

When using the WP-Members Security extension’s option for the WP password strength meter, if the user does not provide a password meeting the required strength, the form’s submit button is disabled. There are times when it may be necessary to provide additional information to the user so they know why the button is disabled. This may be the case when the form is long and the button is far away from the password field. It could be other cases as well.

This tutorial will provide you with a process that will allow you to change the text of the submit button if the meter is in an error state (i.e. when the password does not meet the required strength level).

Continue Reading →
  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 7
  • Page 8
  • Page 9
  • Page 10
  • Page 11
  • Interim pages omitted …
  • Page 53
  • Go to Next Page »

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