pmpro_membership_excerpt_filter

If the_excerpt is called, we want to disable the_content filters so the PMPro messages aren't added to the content before AND after the ecerpt.

Description

pmpro_membership_excerpt_filter( $content, (constant) $skipcheck = false ); 

Parameters (2)

0. $content
The content.
1. $skipcheck — Optional. (constant) => false
The skipcheck.

Usage

  1. if ( !function_exists( 'pmpro_membership_excerpt_filter' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'paid-memberships-pro/includes/content.php'; 
  3.  
  4. // The content. 
  5. $content = null; 
  6.  
  7. // The skipcheck. 
  8. $skipcheck = false; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = pmpro_membership_excerpt_filter($content, $skipcheck); 
  12.  

Defined (1)

The function is defined in the following location(s).

/includes/content.php  
  1. function pmpro_membership_excerpt_filter($content, $skipcheck = false) 
  2. {  
  3. $content = pmpro_membership_content_filter($content, $skipcheck); 
  4.  
  5. return $content;