Advertisement
casben79

Add Filters To The s2 plugin form input values

May 21st, 2012
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.84 KB | None | 0 0
  1. // if a button is hidden, show only other
  2.                 $unsubscribe_value = apply_filters( 's2_unsubscribe_text', __('Unsubscribe', 'subscribe2') );
  3.                 $subscribe_value = apply_filters( 's2_subscribe_text', __('Subscribe', 'subscribe2') );
  4.         if ( $hide == 'subscribe' ) {
  5.             $this->input_form_action = "<input type=\"submit\" name=\"unsubscribe\" value=\"" . esc_attr( $unsubscribe_value ) . "\" />";
  6.         } elseif ( $hide == 'unsubscribe' ) {
  7.             $this->input_form_action = "<input type=\"submit\" name=\"subscribe\" value=\"" . esc_attr( $subscribe_value ) . "\" />";
  8.         } else {
  9.             // both form input actions
  10.             $this->input_form_action = "<input type=\"submit\" name=\"subscribe\" value=\"" . esc_attr( $subscribe_value ) . "\" />&nbsp;<input type=\"submit\" name=\"unsubscribe\" value=\"" . esc_attr( $unsubscribe_value ) . "\" />";
  11.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement