• Resolved aico22

    (@aico22)


    Hi, I am trying to setup the email notification for referral points and want each sentence written line by line in different paragraph.
    However, all the html code such as <br> <p>

    • etc, does not work. After click the save changes button, all the html code will disappear and the email sentences will become in a mess.
      Below is the screen capture for your reference.

      The first picture is what I want.
      The second picture is the actual result.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hello @aico22

    We have developed our plugin according to WordPress standards. We have used wp_unslash when any data entered by the customer. wp_unslash will remove HTML the tags from the wp-editor.

    If you want to add the HTML tags in the wp-editor you need to make these change in the code-
    Please change the following function code once just replace this function.

    FILE PATH->points-and-rewards-for-woocommerce/public/class-points-rewards-for-woocommerce-public.php
    line no 673.

    public static function mwb_wpr_get_email_notification_description( $id ) {
    
    $mwb_wpr_notificatin_array = get_option( 'mwb_wpr_notificatin_array', true );
    $mwb_wpr_email_discription = isset( $mwb_wpr_notificatin_array[ $id ] ) ? stripcslashes( $mwb_wpr_notificatin_array[ $id ] ) : '';
    return $mwb_wpr_email_discription;
    }
    

    After making this change HTML tags will not get removed from wp-editor.
    Thanks

Viewing 1 replies (of 1 total)

The topic ‘set up the email notification’ is closed to new replies.