• 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_activate_user()

Description

Activates a user when moderated registration is used.

Parameters

$user_id
(int) (optional) The user ID. If no ID is passed, the current user ID will be used.

$notify
(boolean) (optional) Send email notification to user when activated. Defaults to true.

$set_pwd
(boolean) (optional) Sets a password when the user is activated. Defaults to false.

Return Value

(void)

Notes

  • Triggers wpmem_user_activated action
  • Also see wpmem_deactivate_user()

Examples

Changelog

  • Introduced in version 2.4.0
  • 3.1.6 Dependencies now loaded by object.
  • 3.2.4 Renamed from wpmem_a_activate_user().
  • 3.3.0 Moved to user API
  • 3.3.5 Added $notify argument.
  • 3.4.0 Added $set_pwd argument.

Source

wpmem_activate_user() is located in /includes/api-users.php.

wpmem_is_user_activated()

Description

Checks if a user is activated when moderated registration is used.

Parameters

$user_id
(int) (optional) The user ID. If not ID is passed, the current user ID will be used.

Return Value

(boolean) Returns true if user is activated, otherwise false.

Examples

Changelog

Introduced in version 3.1.7
Added as an alias of WP_Members_Users::is_user_activated() in 3.2.3

Source

wpmem_is_user_activated() is located in /includes/api-users.php.

wpmem_email_attachments

Description

Filter hook to add attachments to emails sent through the WP-Members email function.

Parameters

$attachment
(string/array)(required) The path to an attachment.

$tag
(string)(optional) The email being sent (newreg|newmod|appmod|repass|admin).

Usage

// Example adding an attachement as a string:
add_filter( 'wpmem_email_attachments', function( $attachments, $tag ) {
    
    if ( 'newreg' == $tag ) {
        $upload_dir = wp_upload_dir();
        $attachments = trailingslashit( $upload_dir['basedir'] ) . 'path/to/file/filename.pdf';
    }
    
    return $attachments;
}, 10, 2 );


// Example adding an attachment as an array:
add_filter( 'wpmem_email_attachments', function( $attachments, $tag ) {
    
    if ( 'newreg' == $tag ) {
        $upload_dir = wp_upload_dir();
        $attachments[] = trailingslashit( $upload_dir['basedir'] ) . 'path/to/file/filename.pdf';
    }
    
    return $attachments;
}, 10, 2 );

Changelog

  • Introduced in 3.4.0

Source

wpmem_email_attachments is located in includes/class-wp-members-email.php

WP-Members 3.4.1.1

Chad Butler · Jan 8, 2022 ·

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..

 

If you are using the PayPal extension, there was a function name conflict in WP-Members 3.4.1 that will cause a PHP fatal error. This will ordinarily manifest itself as a message indicating “There has been a critical error on this website.”

This issue was discovered within a few hours after the initial release of version 3.4.1 and a fix was released shortly after this as version 3.4.1.1.

Continue Reading →

WP-Members 3.4.0 – WOW!

Chad Butler · Dec 14, 2021 ·

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..

 

You asked – RocketGeek listened!

WP-Members 3.4.0 is released today and it packs the biggest updates and changes that I have released in quite a while.

Most of the features are based on either direct user requests or on refining aspects of the plugin that users have given feedback on. And not only are there new and improved features, but as usual, when I reach a major plugin update (i.e. 3.3.x to 3.4.x), I do a complete code review to make sure the plugin’s codebase does not become unnecessarily bloated and to find areas that code can be tightened and improved.  That includes a complete security audit as well.

Here’s a rundown of what is in store for you in WP-Members 3.4.0! 

Continue Reading →
  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 15
  • Page 16
  • Page 17
  • Page 18
  • Page 19
  • Interim pages omitted …
  • Page 53
  • 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