Tribe__Events__Community__Integrations__WP_Edit::prevent_wpautop_conflict()
If/when the WP Edit plugin is running, prevent its “disable wpautop” option from breaking the Community Events submission form.
Source
File: src/Tribe/Integrations/WP_Edit.php
public function prevent_wpautop_conflict() {
global $jwl_toggle_wpautop;
if ( ! empty( $jwl_toggle_wpautop ) && $jwl_toggle_wpautop instanceof JWL_Toggle_wpautop ) {
remove_action( 'the_post', array( $jwl_toggle_wpautop, 'the_post' ) );
remove_action( 'loop_end', array( $jwl_toggle_wpautop, 'loop_end' ) );
}
}
Changelog
| Version | Description |
|---|---|
| 4.5.10 | Introduced. |