Tribe__Tickets__Editor__Meta::update_global_stock_meta_in_rest( null|bool $check, int $unused_object_id, string $meta_key )
Don’t update global stock meta that’s handled elsewhere.
Contents
Parameters
- $check
-
(null|bool) (Required) Whether to allow updating metadata for the given type.
- $unused_object_id
-
(int) (Required) Object ID.
- $meta_key
-
(string) (Required) Meta key.
Return
(bool)
Source
File: src/Tribe/Editor/Meta.php
public function update_global_stock_meta_in_rest( $check, $unused_object_id, $meta_key ) { $global_stock_meta_fields = $this->get_global_stock_meta_fields(); if ( isset( $global_stock_meta_fields[ $meta_key ] ) ) { return true; } return $check; }
Changelog
Version | Description |
---|---|
4.11.5 | Introduced. |