Skip to content

Commit dca2231

Browse files
committed
add a filter for the member data
1 parent 5fc21c4 commit dca2231

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

classes/class-shortcode.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ public static function load_template( $template = '', $member_data = array(), $d
3333
if( empty( $default_path ) ){
3434
$default_path = MPT_DIR;
3535
}
36+
37+
$member_data = apply_filters( 'mpt_shortcode_data', $member_data );
3638

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

0 commit comments

Comments
 (0)