Noptin_Abstract_Integration::add_checkbox_message_integration_option( array $options, string $title = null, string $description = '' )

Adds an integration subscription checkbox message.


Parameters Parameters

$options

(array) (Required) An array of Noptin options.

$title

(string) (Optional) The option title

Default value: null

$description

(string) (Optional) The option description.

Default value: ''


Top ↑

Return Return

(array) an updated array of Noptin options.


Top ↑

Source Source

File: includes/integrations/class-noptin-abstract-integration.php

	public function add_checkbox_message_integration_option( $options, $title = null, $description = '' ) {

		if ( is_null( $title ) ) {
			$title = __( 'Checkbox Message', 'newsletter-optin-box' );
		}

		$option_name = $this->get_checkbox_message_integration_option_name();
		$default     = $this->get_checkbox_message_integration_default_value();

		$this->maybe_save_default_value( $option_name, $default );

		$checkbox_positions    = $this->checkbox_positions();
		$options[$option_name] = array(
            'el'          => 'input',
			'type'        => 'text',
			'restrict'    => sprintf( 
				'%s && %s && %s',
				$this->get_enable_integration_option_name(),
				$this->get_autosubscribe_integration_option_name(),
				empty( $checkbox_positions ) ? 1 : $this->get_checkbox_position_option_name()
			),
            'section'     => 'integrations',
            'label'       => $title,
			'description' => $description,
			'placeholder' => $default,
		);

		return $options;

	}


Top ↑

Changelog Changelog

Changelog
VersionDescription
1.2.6Introduced.

Top ↑

User Contributed Notes User Contributed Notes

30 day money back guarantee
Safe & Secure online payment
Custom CSS Slide Example
Custom Animation Example
Default Animation