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.


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.


Top ↑

Return #

(bool)


Top ↑

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;
	}

Top ↑

Changelog #

Changelog
Version Description
4.11.5 Introduced.