Noptin_Popups::get_popups()

Returns a list of all published popup forms


Return Return

(array)


Top ↑

Source Source

File: includes/class-noptin-popups.php

	public function get_popups() {

		$args = array(
			'numberposts' => -1,
			'fields'      => 'ids',
			'post_type'   => 'noptin-form',
			'post_status' => 'publish',
			'meta_query'  => array(
				'relation' => 'OR',
				array(
					'key'     => '_noptin_optin_type',
					'value'   => 'popup',
					'compare' => '=',
				),
				array(
					'key'     => '_noptin_optin_type',
					'value'   => 'slide_in',
					'compare' => '=',
				),
			),
		);

		return get_posts( $args );
	}


Top ↑

Changelog Changelog

Changelog
VersionDescription
1.0.5Introduced.

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