Support » Plugin: Save and Share Cart for WooCommerce » Deny sending e-mail when option “Send by e-mail” is disabled

  • At this moment I can send an e-mail by calling the Ajax call in my Chrome Developer toolbar > network > replay XHR.

    This should not be an option so I used this code in send_email function:

    
    if( !empty($wcssc->configuration['wcssc_sm_mail']) && 'no' == $wcssc->configuration['wcssc_sm_mail'] ) {
      $response = array(
        'error' => true,
        'msg' => __( 'Email options is disabled', 'wcssc' )
      );
    
      wp_send_json_error($response);
    }
    
  • The topic ‘Deny sending e-mail when option “Send by e-mail” is disabled’ is closed to new replies.