• 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_auto_excerpt

Description

Filters the auto generated post excerpt, if auto excerpts are being used.

Comes at the end of the process, after the $content variable has been truncated.  The auto excerpt will be the number of words specified in the plugin options plus the “more” link.

Parameters

$content
(string) (required) The autogenerated excerpt.

$post_id
(int) (optional) The post ID.

$post_type
(strong) (optional) The WordPress post type of the current post.

Return

$content
(string) (required) The excerpt.

Example

add_filter( 'wpmem_auto_excerpt', function( $content, $post_id, $post_type ) {
    
    global $post;
    return get_the_excerpt( $post );

    // Alternative method if $post is not the current post object.
    // return get_the_excerpt( get_post( $post_id ) );
}, 10, 3);

Changelog

  • Introduced 2.8.1
  • 3.0.9 Added post ID and post type parameters.
  • 3.2.5 Post ID and post type may be false if there is no post object.

Source

wpmem_auto_excerpt is located in /includes/class-wp-members.php

WP-Members 2.9 Project

Chad Butler · Nov 24, 2013 ·

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

 

With most of the work for WP-Members 2.8 project behind us, it is time to start thinking about 2.9.  This update will focus on rebuilding the forms and the registration and login functions.  There may also be some changes to the wpmem_securify and shortcode pages to extend their functionality.

The challenge with form redesign is that there are many people making use of the wpmem_register_form and wpmem_login_form filters that rely on the HTML being constructed in a certain way.  Essentially, depending on what a filter function does, a change in tabs and line breaks in the HTML can break a filter.  Continue Reading →

WP-Members 2.9 Project: wpmem_inc_registration function

Chad Butler · Nov 24, 2013 ·

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

 

This post documents the new wpmem_inc_registration function updates for the upcoming 2.9 release. This content is currently only available to premium members. If you are not currently a member, find out more here.  Continue Reading →

WP-Members 2.8.6 Release

Chad Butler · Sep 23, 2013 ·

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 2.8.6 release contains a couple of cleanup issues.  First, a continuation of the stylesheet updates.  Second, some minor code changes to correct some issues brought to light by some astute users.  Here is a description of the various updates: Continue Reading →

Fighting registration spam with a honey pot

Chad Butler · Aug 3, 2013 ·

I’ve had a few requests for help with combating registration spam using the plugin.  To be honest, I’m right there with you all – I was getting a great deal of registration spam here on the site.  I’ve been working on how to reduce that with a number of approaches.

One approach is the Security extension which has settings to set up black lists.  But blocking IP addresses needs to be done with caution.  Many spammers are not spamming from their own machines.  Some of it comes from innocent victims with compromised systems.

Another possible solution that can work well is to use what is known as a “honey pot.”  This is essentially a trap that the spam bot puts its hand into and is trapped.  That is the method I will describe here.

Continue Reading →
  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 39
  • Page 40
  • Page 41
  • Page 42
  • Page 43
  • 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