Skip to content

Instantly share code, notes, and snippets.

@nikitasinelnikov
Last active October 4, 2024 11:04
Show Gist options
  • Save nikitasinelnikov/a6088f038969f030dfb1b5b99feed68c to your computer and use it in GitHub Desktop.
Save nikitasinelnikov/a6088f038969f030dfb1b5b99feed68c to your computer and use it in GitHub Desktop.
Ultimate Member: Avoid wp_kses in um_loggedin shortcode content
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