PluginProbe
WCPOS – Point of Sale (POS) plugin for WooCommerce / 1.10.18
WCPOS – Point of Sale (POS) plugin for WooCommerce v1.10.18
1.10.19 1.10.18 1.10.17 1.10.16 1.10.15 1.10.13 1.10.14 1.10.12 1.10.11 1.10.10 1.10.9 1.10.8 untagged-3d9b7ccddc54df87c672 1.10.7 1.10.6 1.10.5 1.10.3 1.10.4 1.10.2 1.10.1 1.10.0 1.9.17 1.9.15 1.9.16 1.9.14 All 163 releases
← All changes | includes/Sync/Pos_Visibility.php +3 -2 1.10.41.10.18 View file →
@@ -162,13 +162,14 @@
162 162 * @param array $args Query args to filter.
163 163 * @param string $collection Collection being queried: `products` or `variations`. Any other
164 164 * value returns the args untouched.
165 165 * @param null|string $scope Visibility scope: `default` or a store id. Null means default.
166 + * @param null|string $type Explicit lane type, or null for the collection default.
166 167 *
167 168 * @return array
168 169 */
169 - public function apply_to_wp_query_args( array $args, string $collection, ?string $scope = null ): array {
170 - $type = self::collection_type( $collection );
170 + public function apply_to_wp_query_args( array $args, string $collection, ?string $scope = null, ?string $type = null ): array {
171 + $type = $type ?? self::collection_type( $collection );
171 172 if ( null === $type ) {
172 173 return $args;
173 174 }
174 175