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

Chad Butler · May 18, 2016 ·

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

 

WP-Members 3.1.1 is primarily a feature release continuing development objectives from the 3.1 project.

Get the plugin here.

Continue Reading →

wpmem_{$page}_links_args

Description

Filters the links array of the logged in state for WP-Members special pages (login, register, user profile).  This filter comes before wpmem_{$page}_links and allows you much more control over the elements that are in that HTML output.

{$page} can be the following:

  • login (login page/shortcode); use as wpmem_login_links_args.
  • register (register page/shortcode); use as wpmem_register_links_args.
  • member (user profile page/shortcode); use as wpmem_member_links_args.

Parameters

$arr
(array) (required) An array of information for the links displayed when logged in:

  • before_wrapper – Anything that comes before the wrapper (register|member only).
  • wrapper_before – The wrapper opening tag (default: <ul>).
  • rows – Row items HTML (register|member only).
  • user_login – The user’s login name/username (login only)
  • welcome – The welcome text string (login only).
  • logout_text – The text for the logout link (login only).
  • logout_link – The link for logging out (pre-filtered with wpmem_logout_link) (login only)
  • wrapper_after – The wrapper closing tag (default: </ul>).
  • after_wrapper – Anything that comes after the wrapper (register|member only).

Usage

The following example uses the {register} tag (so wpmem_register_links_args) to customize the links display of the logged in state of the [wpmem_form register] shortcode:

add_filter( 'wpmem_register_links_args', function( $args ) {

    // Change link #2. (Note PHP arrays begin at 0)
    $args['rows'][1] = '<li><a href=' . home_url( 'my-page' ) . '>Enter the members area</a></li>';

    // Add another link.
    $args['rows'][] = '<li><a href=' . home_url( 'some-page' ) . '>My Extra Link</a></li>';

    return $args;
    
});

Notes

The array this filter handles is used to assemble a string of HTML for the logged in state of various pages (profile|register|login). This filter makes it easy to target specific parts of HTML so you can more easily change content, HTML tags, or the attributes of various tags (such as classes and IDs). The assembled HTML can be filtered later as a single string using the following (depending on the specific page/$tag):

  • wpmem_login_links
  • wpmem_register_links
  • wpmem_member_links

Changelog

  • Introduced in version 2.9.9 (wpmem_login_links_args)
  • Introduced in version 3.0.9 (member|register args)
  • Added after_wrapper parameter in 3.1.0

Source

wpmem_{$page}_links_args is located in /includes/class-wp-members-shortcodes.php.

Integrate WP User Avatar with WP-Members User Profile

Chad Butler · Apr 4, 2016 ·

wp_user_avatarWP User Avatar is a popular choice for allowing users to upload and use a custom avatar instead of gravatar that is integrated in WordPress. This post describes a nicely integrated process for a user to update their avatar on the WP-Members user profile screen.

This code snippet will add a link to the WP-Members user profile update screen to update the user’s avatar, and will set up a custom screen for avatar update screen.

The snippet can be used “cut-and-paste” but also has some elements that could be customized.  Additionally, the features of the WP User Avatar front end process could have some CSS applied for theme integration.  The screenshot here is a demo site using Twenty Fourteen, so colors and buttons will look different for you.

Note: you must also have WP User Avatar installed for this to work.  Continue Reading →

WP-Members 3.1

Chad Butler · Mar 29, 2016 ·

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

 

WP-Members 3.1 contains some long awaited features, some fixes, and some improvements.

There are no changes to the database with this update so if you are currently at 3.0 or higher, you should be able to roll back without difficulty.  (If you are using a version earlier than 3.0, there are changes from 2.x to 3.x that will be implemented in this update that would affect rolling back to 2.x.  If that’s the case for you, you should test the update on a development system prior to upgrading.)

This version is currently available on GitHub as version 3.0.10.  There will be no official 3.0.10 release on wordpress.org – this is merely a transitional release tag for building and testing leading into the official 3.1.0 release.  The 3.0.10 is packaged and available for testing.  The full production release of 3.1.0 will be available soon.

Here is a list of new features, improvements, and fixes: Continue Reading →

wpmem_notify_filter

Description

Filters the email and some of the email settings.

Parameters

$arr
(array) (required) An array of information for the email process:

  • subj – the email subject
  • body – the email body/content
  • user_id – the user’s ID
  • user_login – the user’s username
  • user_email – the user’s email address
  • blogname – the name of the blog (get_option ( ‘blogname’ ))
  • user_ip – the user’s IP address at registration
  • reg_link – the URL of the page the user registered on
  • act_link – the link to the user’s profile to activate the user
  • exp_type – the user’s subscription type (PayPal Extension Only)
  • exp_date – the user’s expiration date (PayPal Extension Only)
  • wpmem_msurl – the URL of the User Profile shortcode page, if set
  • do_shortcodes – true|false boolean to enable the WP-Members email shortcodes (default: true)
  • add_footer – true|false boolean to enable adding the footer to the email (default: true)
  • disable – true|false boolean to disable sending the email (default: false)
  • headers – the email headers
  • admin_email – the email to send notification to (pre_filtered with wpmem_notify_addr)

$wpmem_fields
(array) (optional) The WP-Members fields array.

$field_data
(array)(optional) An array of the registration data.

Usage

Changelog

Introduced in version 2.9.8

Source

wpmem_email_filter is located in inc/email.php

  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 31
  • Page 32
  • Page 33
  • Page 34
  • Page 35
  • Interim pages omitted …
  • Page 52
  • 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