• 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

Passwords are not being included in Emails

The plugin installs with a certain set of defaults based on sending users a password when they register.  The plugin has a lot of other possible configurations but you must make appropriate changes.

When the plugin is set for moderated registration AND you allow users to set a password at registration, you cannot send the user their password when they are activated. [See Moderating Registration: User Defined Passwords]  

In this scenario, it is not necessary to send them a password at all since they have already set it.  However, if you want to send them a copy of their user credentials, then the password must be sent in the email that goes to the user when they register, not when they are activated. You can change this in the Emails tab.

The only time a password is available in plain text is when it is actually created.  When a generated password is sent, that password is created when the user is approved.  This is why the default email content places the password shortcode in the activation email.  When a user creates a password at registration, then the only time that password will be available is at that moment.  After registration, it will be hashed.

Note: Even though you can email the user their login credentials, that does not mean you should. It is recommended that you not send user credentials to the user via email as this is an insecure mode of transport. If the user is creating their own credentials on the site when they register, there is no need to email this information to the user.

wpmem_ul_settings_args defaults

Chad Butler · Mar 18, 2023 ·

Continue Reading →

Domain not included in the password reset link

The return link included in the password reset email is generated based on the plugin’s User Profile page setting. If you do not have the “user profile page” setting set in the plugin’s main options, then the return URL in the password reset email will be incomplete.

To make sure the link is complete, make sure you selected a page for the user profile page setting in the plugin’s main options (Settings > WP-Members).

Generally, this page will contain the [wpmem_profile] shortcode. It is a general shortcode that handles changing a password and updating registration data for logged in users, as well as resetting a forgotten password, login, and registration for logged out users.

It is recommended that you start with and use the [wpmem_profile] shortcode as described above.  However, for setups that need a little more control over things, there are alternatives.  The [wpmem_form password] shortcode also handles forgotten password reset for a logged out user. It is essentially just the password portion of the [wpmem_profile] shortcode.  You can potentially use the user profile page setting in the options to point to a page with [wpmem_form password] if you only want to provide a password reset.

Note that if you use [wpmem_form password] the page must not be blocked.

If you have an alternate forgot password dialog (such as the WP default, or WooCommerce), you should still set the User Profile page setting in the main options so the link is displayed.  Then you can use the wpmem_forgot_link filter to change the URL the link points to.

See also: How do I create a forgot password link in the login form?

wpmem_ul_profile_args defaults

Chad Butler · Feb 7, 2023 ·

Continue Reading →

wpmem_create_membership

Description

Creates a membership.

Parameters

$args
(array) (required) Parameters for creating the membership CPT.

  • (string) title User readable name of membership.
  • (string) name Sanitized title of the membership to be used as the meta key.
  • (string) status Published status: publish|draft (default: publish)
  • (int) author User ID of membership author, Optional, defaults to site admin.
  • (array) meta_input Meta fields for membership CPT (optional)
    • (string) name The sanitized title of the membership.
    • (string) default
    • (string) role Roles if a role is required.
    • (string) expires Expiration period if used (num|per).
    • (int) no_gap If renewal is “no gap” renewal.
    • (string) fixed_period (start|end|grace_num|grace_per)
    • (int) set_default_{key}
    • (string) message Custom message for restriction.
    • (int) child_access If membership hierarchy is used.

Usage

/**
 * This example would create a membership with the 
 * title "My Custom Membership", which, if unique
 * in the db, would result in a meta key of 
 * "my-custom-membership" and would have all other
 * properties set to the default values.
 */
$args = array( 'title' => 'My Custom Membership' );
wpmem_create_membership( $args );

Notes

  • The only required value in the $args array is the “title” (user readable name of the membership). All other values can be created with defaults.

Changelog

  • Introduced in version 3.4.6

Source

wpmem_create_membership() is located in /includes/api/api-products.php

  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 12
  • Page 13
  • Page 14
  • Page 15
  • Page 16
  • Interim pages omitted …
  • Page 54
  • Go to Next Page »

Ready to get started?

Join Today!

© 2026 · 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