Noptin_Page::add_options( array $options )
Registers confirmation pages options.
Parameters Parameters
- $options
(array) (Required) Current Noptin settings.
Return Return
(array)
Source Source
File: includes/class-noptin-page.php
public function add_options( $options ) { $options["pages_unsubscribe_page_message"] = array( 'el' => 'textarea', 'section' => 'messages', 'label' => __( 'Unsubscription Message', 'newsletter-optin-box' ), 'placeholder' => $this->default_unsubscription_confirmation_message(), 'default' => $this->default_unsubscription_confirmation_message(), 'description' => __( 'The message to show to subscribers after they unsubscribe. Only used if you do not provide a redirect url below.', 'newsletter-optin-box' ), ); $options["pages_unsubscribe_page"] = array( 'el' => 'input', 'section' => 'messages', 'label' => __( 'Unsubscription Redirect', 'newsletter-optin-box' ), 'placeholder' => 'https://example.com/newsletter-unsubscribed', 'description' => __( 'Where should we redirect subscribers after they unsubscribe?', 'newsletter-optin-box' ), ); $options["pages_confirm_page_message"] = array( 'el' => 'textarea', 'section' => 'messages', 'label' => __( 'Confirmation Message', 'newsletter-optin-box' ), 'placeholder' => $this->default_subscription_confirmation_message(), 'default' => $this->default_subscription_confirmation_message(), 'description' => __( 'The message to show to subscribers after they confirm their email address. Only used if you do not provide a redirect url below.', 'newsletter-optin-box' ), ); $options["pages_confirm_page"] = array( 'el' => 'input', 'section' => 'messages', 'label' => __( 'Confirmation Redirect', 'newsletter-optin-box' ), 'description' => __( 'Where should we redirect subscribers after they confirm their emails?', 'newsletter-optin-box' ), 'placeholder' => 'https://example.com/newsletter-confirmed', ); return apply_filters( "noptin_page_settings", $options ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.2.6 | Introduced. |