Newlines not replaced by paragraph tags
-
Hi,
It appears when BP sends an email, this plugin sends HTML content without the newlines replaced with paragraph tags.
The issue appears to me to be in the plugin_actions_and_filters() method.
My current workaround is:
// Filter add_filter( 'bp_email_get_content_plaintext', [ self::class, 'autowp_templated_bp_email' ], 100, 4 ); // Function function autowp_templated_bp_email( $value, $property_name, $transform, $email ) { if ( $transform !== 'replace-tokens' ) { return $value; } if ( ! str_contains( $value, '<!-- [IS BUDDYPRESS EMAIL] -->' ) ) { return $value; } return wpautop( $value ); }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Newlines not replaced by paragraph tags’ is closed to new replies.