Inventory_Presser_REST::allow_orderby_photo_number( array $params )
Adds the photo_number meta field to the allowed orderby values.
On This Page
Parameters Parameters
- $params
-
(array) (Required)
Return Return
(array)
Source Source
File: includes/class-rest.php
public function allow_orderby_photo_number( $params ) { $params['orderby']['enum'][] = apply_filters( 'invp_prefix_meta_key', 'photo_number' ); return $params; }
Expand full source codeCollapse full source codeView on Github