Membership Plugin

WordPress Membership Plugin

  • Home
  • Documentation
  • Addons
  • Support
    • Quick Setup
    • Documentation
    • Premium Addon Support
    • Paid Support
    • Support Forum
    • Support Forum Search
    • Forum Login
    • Forum Registration
  • Contact

[Support request] Automatic excerpt on protected content

Simple Membership Plugin › Forums › Simple Membership Plugin › Automatic excerpt on protected content

Tagged: excerpt, more, Tag

  • This topic has 1 reply, 2 voices, and was last updated 5 years, 9 months ago by admin.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • July 21, 2020 at 10:48 am #20595
    gtz
    Participant

    Hello,

    It’s possible to automatically add the excerpt on all PROTECTED articles?
    Instead of doing it manually with the MORE tag?

    on class-wp-members.php i have seen that there is a function

    	/**
    	 * Creates an excerpt on the fly if there is no 'more' tag.
    	 *
    	 * @since 2.6
    	 * @since 3.2.3 Moved to WP_Members class.
    	 * @since 3.2.5 Check if post object exists.
    	 *
    	 * @global object $post  The post object.
    	 * @global object $wpmem The WP_Members object.
    	 *
    	 * @param  string $content
    	 * @return string $content
    	 */
    	function do_excerpt( $content ) {

    that seems undocumented. The only way you suggest is manually using the MORE tag.

    Any advice?
    Thanks

    July 22, 2020 at 11:18 pm #20599
    admin
    Keymaster

    This is not a file from our Simple Membership plugin. So not sure what you are showing here.

    Normally, the except is handled by your theme. You will need to modify your theme’s template file for the customization.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

Please read this message before using our plugin.

Search

Featured Addons and Extensions

  • Membership Form Builder Addon
  • Member Directory Listing Addon
  • WooCommerce Payment Integration
  • Member Data Exporter Addon

Documentation

  • Documentation Index Page

Copyright © 2026 | Simple Membership Plugin | Privacy Policy