Last active
October 4, 2024 11:04
-
-
Save nikitasinelnikov/a6088f038969f030dfb1b5b99feed68c to your computer and use it in GitHub Desktop.
Ultimate Member: Avoid wp_kses in um_loggedin shortcode content
This file contains 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
function my_um_loggedin_inner_content_without_kses( $prepared_content, $content ) { | |
return apply_shortcodes( UM()->shortcodes()->convert_locker_tags( wpautop( $content ) ) ); | |
} | |
add_filter( 'um_loggedin_inner_content', 'my_um_loggedin_inner_content_without_kses', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment