pmpro_pages_shortcode_<pmpro_page_name>

Ob_start();.

Description

apply_filters( 'pmpro_pages_shortcode_<pmpro_page_name>', (unknown) $temp_content ); 

if(file_exists(http://hookr.io/functions/get_stylesheet_directory" title="get_stylesheet_directory" class="code function">http://hookr.io/functions/get_stylesheet_directory" title="get_stylesheet_directory" class="code function">get_stylesheet_directory() . /paid-memberships-pro/pages/ . $pmpro_page_name . .php)) include(http://hookr.io/functions/get_stylesheet_directory" title="get_stylesheet_directory" class="code function">http://hookr.io/functions/get_stylesheet_directory" title="get_stylesheet_directory" class="code function">get_stylesheet_directory() . /paid-memberships-pro/pages/ . $pmpro_page_name . .php); elseif(file_exists(http://hookr.io/functions/get_template_directory" title="get_template_directory" class="code function">http://hookr.io/functions/get_template_directory" title="get_template_directory" class="code function">get_template_directory() . /paid-memberships-pro/pages/ . $pmpro_page_name . .php)) include(http://hookr.io/functions/get_template_directory" title="get_template_directory" class="code function">http://hookr.io/functions/get_template_directory" title="get_template_directory" class="code function">get_template_directory() . /paid-memberships-pro/pages/ . $pmpro_page_name . .php); else include(PMPRO_DIR . /pages/ . $pmpro_page_name . .php);

$temp_content = ob_get_contents(); // ob_end_clean();

Parameters (1)

0. $temp_content (unknown)
The temp content.

Usage

To run the hook, copy the example below.
  1. $temp_content = apply_filters( 'pmpro_pages_shortcode_{$pmpro_page_name}', $temp_content ); 
  2.  
  3. if ( !empty( $temp_content ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the pmpro_pages_shortcode_<pmpro_page_name> callback 
  2. function filter_pmpro_pages_shortcode_pmpro_page_name( $temp_content ) { 
  3. // make filter magic happen here... 
  4. return $temp_content
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( "pmpro_pages_shortcode_{$pmpro_page_name}", 'filter_pmpro_pages_shortcode_pmpro_page_name', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( "pmpro_pages_shortcode_{$pmpro_page_name}", 'filter_pmpro_pages_shortcode_pmpro_page_name', 10, 1 ); 

Defined (1)

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

/includes/init.php  
  1. return apply_filters("pmpro_pages_shortcode_" . $pmpro_page_name, $temp_content);