Noptin_Ninja_Forms::__construct()

Constructor


Source Source

File: includes/integrations/class-noptin-ninja-forms.php

	public function __construct() {
		parent::__construct();
		$this->_nicename = 'Noptin';

		/*
		 * Settings
		 */
		$map_fields = $this->get_map_fields();

		foreach ( $map_fields as $field ) {
			$name = 'noptin_' . $field['name'];
			$this->_settings[ $name ] = array(

				'name'	         => $name,
				'type'	         => isset( $field['type'] ) ? $field['type'] : 'textbox',
				'label'	         => $field['label'],
				'width'	         => isset( $field['width'] ) ? $field['width'] : 'full',
				'group'	         => isset( $field['group'] ) ? $field['group'] : 'primary',
				'value'	         => isset( $field['value'] ) ? $field['value'] : '',
				'placeholder'    => isset( $field['placeholder'] ) ? $field['placeholder'] : '',
				'help'           => isset( $field['help'] ) ? $field['help'] : '',
				'use_merge_tags' => isset( $field['use_merge_tags'] ) ? $field['use_merge_tags'] : true

			);
		}

		$this->_settings = apply_filters( 'noptin_ninja_forms_integration_action_settings', $this->_settings );

	}


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