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