• The filter “s2_form” doesn’t apply for the form which displayed after submitting. To fix this bug I have changed line 121 in class-s2-frontend.php

    from

    $this->s2form = apply_filters('s2_form', $this->form);

    to

    $this->form = apply_filters( 's2_form', $this->form );
    $this->s2form = $this->form;

    Will be great if plugin’s author fix it in future version.

    https://www.ads-software.com/plugins/subscribe2/

Viewing 1 replies (of 1 total)
  • @happiness1

    Another way of applying a fix for this is to change all instances of $this->form to $this->s2form within the shortcode() function after the filter is applied. There are 5 places where it needs changing.

    Good catch though – I will get this in Subscribe2 HTML; @tanaylakhani will hopefully see this to apply the patch to the free version.

Viewing 1 replies (of 1 total)
  • The topic ‘"s2_form" filter is missed for form after submiting’ is closed to new replies.