Sets up the query for retrieving forms.
Description
See also
Parameters
- $query
-
(string|array) (Required) Array or query string of form query arguments.
Return
(awsmug\Torro_Forms\DB_Objects\Forms\Form_Collection) Collection of forms.
Source
File: src/db-objects/forms/form-query.php
public function query( $query ) { $query = $this->map_args( $query ); if ( isset( $query['fields'] ) && 'ids' !== $query['fields'] ) { $query['fields'] = ''; } return parent::query( $query ); }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |