Created
October 2, 2024 16:29
-
-
Save Crocoblock/31aad6ab0e0d2a641bdd849e4418f415 to your computer and use it in GitHub Desktop.
JetEngine Profile Builder Register Profile Builder macro
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'jet-engine/profile-builder/user-page-title/macros', function( $macros ) { | |
$macros['do_shortcode'] = array( | |
'label' => 'Do Shortcode', | |
'cb' => function() { | |
return do_shortcode( '[jet_engine_data dynamic_field_source="query_var" dynamic_field_var_name="test1"]' ); | |
}, | |
'allowed_tabs' => array( 'account_page', 'user_page' ), | |
); | |
return $macros; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment