• 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

WP-Members 3.3.5 Beta Release

Chad Butler · Aug 3, 2020 ·

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 3.3.5 version of the plugin is now available in the wordpress.org repository as a beta release. This is primarily a fix and feature release, with some of the new features being “experimental” for full use in 3.4.0.

You can get the beta version from the wordpress.org repository by going to https://wordpress.org/plugins/wp-members/advanced/ and selecting “Development Version” from the dropdown selector in the “Advanced Options” section.

Another simple way to load the beta version is to use WP CLI. Use the command wp plugin update wp-members --version=trunk.  There are no database changes in this version, so if you need to roll back, you can use the command wp plugin update wp-members --version=3.3.4.3

You can also get it on github. Note that the github version is always the “bleeding edge” update and may include updates (including debugging changes) so at any given time it may differ from the version on wordpress.org as official beta.

Here is an overview of what’s in this version: Continue Reading →

wpmem_post_products

Description

Filters the membership products required to access content (by post ID).

This filter is deprecated. Use wpmem_post_memberships instead.

Parameters

$post_products
(array)(required) The membership products assigned to the post.

$post_id
(integer)(optional) The post ID being filtered.

Usage

The following example shows how to use this filter hook to apply all posts in a category to a specific memberhship:

/**
 * You can have all posts in a category set to require a membership
 * by using the wpmem_post_memberships filter hook and WP's has_category().
 *
 * @see https://rocketgeek.com/plugins/wp-members/docs/filter-hooks/wpmem_post_memberships/
 * @see https://developer.wordpress.org/reference/functions/has_category/
 *
 * NOTE: This filter requires that you also have the category blocked (or at least
 * all posts in the category marked as blocked). The simplest way to do that is to
 * use a filter to make sure any post in the category is viewed as blocked.
 * @see https://rocketgeek.com/code-snippets/use-a-filter-to-block-a-category/
 */
add_filter( 'wpmem_post_memberships', function( $post_memberships, $post_id ) {
    
    // What is the category:
    $category = 'my-blocked-category-slug';
    
    // What is the required membership:
    $membership = 'my-membership';
    
    $has_category = has_category( $category, $post_id );
    if ( $has_category ) {
        return array( $membership );
    }
    return $post_memberships;
}, 10, 2  );

Changelog

  • Introduced in 3.3.5

Source

wpmem_post_products is located in inc/class-wp-members-products.php

Bulk move of files in media folder to Download Protect directory

Chad Butler · May 20, 2020 ·

One question that comes up from time-to-time is how to move files from the media folder to the download protect folder (which is a subfolder in the WP /uploads/ directory).  The usual answer is “you can’t.”

However, sometimes we run across a user that has 100s (or more) existing files that they want to move into the protected directory. So I have written a command line script that will process a bulk move for you. 

Continue Reading →

wpmem_login_form_defaults

Description

Filters the login form defaults for heading, action, button text, redirect_to (if used), and the field elements (such as label text).

Introduced in 3.3.0, it replaces wpmem_inc_login_inputs and wpmem_inc_login_args, both of which should be considered deprecated.

Parameters

$args (array)

/*
@param array $args {
    @type string $heading      The form heading
    @type string $action       The form action (do not change unless you know what you are doing)
    @type string $button_text  The form submit button text
    @type string $redirect_to  The $redirect_to parameter
    @type array  $inputs {
        An array of inputs, there will be one array element for each form input, keyed starting with [0].
    
        @type string $name   The field label
        @type string $type   The field type
        @type string $tag    The field meta tag
        @type string $class  The CSS class
        @type string $div
    }
}
*/

Usage

// An example of changing a single major element.
add_filter( 'wpmem_login_form_defaults', function( $args ) {
    $args['heading'] = "Log in here";
    return $args;
});

// An example of changing a single field input element.
add_filter( 'wpmem_login_form_defaults', function( $args ) {
    $args['inputs'][0]['name'] = "Email";
    return $args;
});

// An example of changing multiple elements.
add_filter( 'wpmem_login_form_defaults', function( $args ) {
    $args['heading'] = "Log in here";
    $args['button_text'] = "Click to log in";
    $args['inputs'][0]['name'] = "Email";
    return $args;
});

Notes

  • The “inputs” are a subarray in the overall array. It is a numerically keyed array starting at 0. Each input is in the array in display order. For example, in the default login form, the username/email input is [0] and the password is [1], in the password change form, password is [0] and confirm password is [1], etc.

Changelog

Introduced in version 3.3.0

Source

wpmem_login_form_defaults is located in /includes/class-wp-members-forms.php

WP-Members PayPal Subscriptions Extension 0.9.6 update

Chad Butler · Mar 23, 2020 ·

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 PayPal Subscription extension has received an update today. This is version 0.9.6.  This post highlights the changes in this version.  Continue Reading →

  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 20
  • Page 21
  • Page 22
  • Page 23
  • Page 24
  • Interim pages omitted …
  • Page 55
  • 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