Created
April 10, 2025 16:51
-
-
Save yuriinalivaiko/90d2777af68f65b2524adbe74dcfadd8 to your computer and use it in GitHub Desktop.
Ultimate Member customization. Apply shortcodes in the "Content Block" field.
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 | |
// apply shortcodes in the "Content Block" field. | |
add_filter( 'um_get_field_block', function( $data ) { | |
if ( array_key_exists( 'content', $data ) ) { | |
$data['content'] = apply_shortcodes( $data['content'] ); | |
} | |
return $data; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment