Noptin_Sidebar::get_forms()

Returns a list of all published sidebar forms


Return Return

(int[])


Top ↑

Source Source

File: includes/class-noptin-sidebar.php

	public function get_forms() {

		$args = array(
			'numberposts' => -1,
			'fields'      => 'ids',
			'post_type'   => 'noptin-form',
			'post_status' => 'publish',
			'meta_query'  => array(
				array(
					'key'     => '_noptin_optin_type',
					'value'   => 'sidebar',
					'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