Noptin_Abstract_Integration::add_options( array $options )

Registers integration options.


Parameters Parameters

$options

(array) (Required) Current Noptin settings.


Top ↑

Return Return

(array)


Top ↑

Source Source

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

	public function add_options( $options ) {

		$slug = $this->slug;

		// Integration name hero text.
		if ( ! empty( $this->name ) ) {

			$options["noptin_{$slug}_integration_hero"] = array(
				'el'              => 'hero',
				'section'		  => 'integrations',
				'content'         => $this->name . $this->get_hero_extra(), 
			);

		}

		// Integration description text.
		if ( ! empty( $this->description ) ) {

			$options["noptin_{$slug}_integration_description"] = array(
				'el'              => 'paragraph',
				'section'		  => 'integrations',
				'content'         => $this->description, 
			);

		}

		$options = $this->get_options( $options );
		$options = apply_filters( "noptin_single_integration_settings", $options, $slug, $this );

		return apply_filters( "noptin_{$slug}_integration_settings", $options, $this );

	}


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