Skip to content

Commit 702e09c

Browse files
committed
pass template name in the filter
1 parent dca2231 commit 702e09c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/class-shortcode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public static function load_template( $template = '', $member_data = array(), $d
3434
$default_path = MPT_DIR;
3535
}
3636

37-
$member_data = apply_filters( 'mpt_shortcode_data', $member_data );
37+
$member_data = apply_filters( 'mpt_shortcode_data', $member_data, $template );
3838

3939
ob_start();
4040
if ( is_file( STYLESHEETPATH . '/shortcodes/mpt-' . $template . '.tpl.php' ) ) {

0 commit comments

Comments
 (0)