1. Home
  2. Docs
  3. Subscribe2
  4. Hooks, API & Customization
  5. s2_form

s2_form

This hook allows the Subscribe2 form output to be dynamically altered to suit the needs of an individual site.

function my_s2_form($form) {
    // To remove the 'Your Email:' prompt text from the form
    $form = str_replace('Your email:', '', $form);
    return $form;
}
add_filter('s2_form', 'my_s2_form');
Was this article helpful to you? Yes No

How can we help?