Skip to content

Commit

Permalink
add filter for output before shortcode runs, see #210
Browse files Browse the repository at this point in the history
  • Loading branch information
billerickson committed Jan 10, 2019
1 parent 55f3cf9 commit abc2d13
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions display-posts-shortcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
add_shortcode( 'display-posts', 'be_display_posts_shortcode' );
function be_display_posts_shortcode( $atts ) {

$output = apply_filters( 'pre_display_posts_shortcode_output', false, $atts );
if( false !== $output )
return $output;

// Original Attributes, for filters
$original_atts = $atts;

Expand Down

0 comments on commit abc2d13

Please sign in to comment.