NF_PUM_Actions_OpenPopup::__construct()

Constructor


Description Description


Source Source

File: includes/integrations/ninja-forms/Actions/OpenPopup.php

	public function __construct()
	{
		parent::__construct();

		$this->_nicename = __( 'Open Popup', 'popup-maker' );

		$settings = array(
			'popup' => array(
				'name' => 'popup',
				'type' => 'select',
				'group' => 'primary',
				'label' => __( 'Popup ID', 'popup-maker' ),
				'placeholder' => '',
				'width' => 'full',
				'options' => isset( $_GET['page'] ) && 'ninja-forms' === $_GET['page'] && ! empty( $_GET['form_id'] ) ? $this->get_popup_list() : array(),
			),
		);

		$this->_settings = array_merge( $this->_settings, $settings );
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.