Noptin_Subscriber_Query::fill_query_vars( array $args )

Fills in missing query variables with default values.


Parameters Parameters

$args

(array) (Required) Query vars, as passed to Noptin_Subscriber_Query.


Top ↑

Return Return

(array) Complete query variables with undefined ones filled in with defaults.


Top ↑

Source Source

File: includes/class-noptin-subscriber-query.php

	public static function fill_query_vars( $args ) {
		$defaults = array(
			'subscriber_status' => 'all',
			'email_status'      => 'any',
			'meta_key'          => '',
			'meta_value'        => '',
			'meta_compare'      => '=',
			'include'           => array(),
			'exclude'           => array(),
			'search'            => '',
			'search_columns'    => array(),
			'orderby'           => array( 'date_created', 'id' ),
			'order'             => 'DESC',
			'offset'            => '',
			'number'            => '',
			'paged'             => 1,
			'count_total'       => true,
			'fields'            => 'all',
			'meta_query'        => array(),
		);

		return wp_parse_args( $args, $defaults );
	}


Top ↑

Changelog Changelog

Changelog
VersionDescription
1.2.7Introduced.

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