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

Description

Returns or prints a requested message string from the WP_Members::get_text() method.

This function is deprecated as of WP-Members 3.4.0, use wpmem_get_text() instead.

Parameters

$str
(string) (required) The array key of the string to retrieve from WP_Members::get_text().

$echo
(bool) (optional) Prints the requested string if true (default: false).

Return Values

(string) The requested message string.

Examples

Notes

List of possible strings by key:

Changelog

  • Introduced in version 3.1.1
  • Added $echo argument in 3.1.2
  • Deprecated in 3.4.0 (use wpmem_get_text() instead)

Source

wpmem_gettext() is located in /includes/deprecated.php.

Lots of updates

Chad Butler · Jun 6, 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..

 

Anyone following the development of WP-Members lately knows that there have been some significant updates this year.  I feel really good about where we are pushing the plugin and am striving to continue to support and produce a top-notch product that is both easy to install and set up but remains infinitely flexible for customization.  Continue Reading →

wpmem_current_url()

Description

This function returns the url of the current page.

The function does not echo output.  Since it returns a string, this can be used for comparisons.

Parameters

$slash
(boolean)(optional) Add trailing slash to the current URL (Default: true)

$getq
(boolean)(optional) Get the query string (if one exists) (Default: true)

Return Values

(string) The URL of the current page.

Examples

Compare the current page to see if we are on the login page (using wpmem_login_url()):

Changelog

  • Introduced in version 3.1.1
  • Added check for query string in 3.1.7

Source

wpmem_current_url() is located in /includes/api/api.php.

wpmem_profile_url()

Description

This function returns the user profile page url (if one is set in the main options tab).

The function does not echo output.  Since it returns a string, this can be used for comparisons (to see if the user is actually on the user profile page), to output a link by echoing the result, or to redirect to the user profile page.  These are just a few examples.

Parameters

$a
(string)(optional) The WP-Members action variable, generally used to display the profile page forgot password dialog (‘pwdreset’).

Return Values

(string) The URL of the user profile page.

Examples

Create a link to the user profile page:

Use wpmem_current_url() to compare the current page:

Changelog

Introduced in version 3.1.1

Source

wpmem_profile_url() is located in /includes/api/api.php

wpmem_login_url()

Description

This function returns the login page url (if one is set in the main options tab).

The function does not echo output.  Since it returns a string, this can be used for comparisons (to see if the user is actually on the login page), to output a link by echoing the result, or to redirect to the login page.  These are just a few examples.

Return Values

(string) The URL of the login page.

Examples

Create a link to the login page:

Use wpmem_current_url() to compare the current page:

Changelog

Introduced in version 3.1.1

Source

wpmem_login_url() is located in /includes/api/api.php.

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