Please let us disable wpautop
-
Hi,
Can you please provide a way to disable wpautop ?
I’m using the More Info Description box to display a custom shortcode (using get_template_part) but the HTML it returns is getting mangled by <br> and <p> tags.
The plugin is calling wpautop() directly, so currently the only way to stop it is to edit the source code.
It’s line 524 in /draw-attention/public/class-drawattention.php (version 1.6.10):
$description_html = ( !empty( $hotspot['description'] ) ) ? wpautop( do_shortcode ( $wp_embed->run_shortcode( $hotspot['description'] ) ) ) : '';Please could you add an option somewhere so that wpautop() is not called there?
Thanks
The topic ‘Please let us disable wpautop’ is closed to new replies.