BP_Date_Query::__construct( array $date_query, string $column = '' )

Constructor.


Description Description

See also See also


Top ↑

Parameters Parameters

$date_query

(array) (Required) Date query arguments.

$column

(string) (Optional) THe DB column to query against.

Default value: ''


Top ↑

Source Source

File: bp-core/classes/class-bp-date-query.php

	public function __construct( $date_query, $column = '' ) {
		if ( ! empty( $column ) ) {
			$this->column = $column;
			add_filter( 'date_query_valid_columns', array( $this, 'register_date_column' ) );
		}

		parent::__construct( $date_query, $column );
	}


Top ↑

User Contributed Notes User Contributed Notes

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