Fix docblock type annotations for `$meta_value` parameter. (#33853)
Fix docblock type annotations for `meta_value` parameter.
This commit is contained in:
parent
91281446e8
commit
843337d248
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
|
||||||
|
Fix docblock type annotations for $meta_value.
|
|
@ -502,7 +502,7 @@ class WC_Post_Data {
|
||||||
* @param int $meta_id Meta ID.
|
* @param int $meta_id Meta ID.
|
||||||
* @param int $object_id Object ID.
|
* @param int $object_id Object ID.
|
||||||
* @param string $meta_key Meta key.
|
* @param string $meta_key Meta key.
|
||||||
* @param string $meta_value Meta value.
|
* @param mixed $meta_value Meta value.
|
||||||
*/
|
*/
|
||||||
public static function flush_object_meta_cache( $meta_id, $object_id, $meta_key, $meta_value ) {
|
public static function flush_object_meta_cache( $meta_id, $object_id, $meta_key, $meta_value ) {
|
||||||
WC_Cache_Helper::invalidate_cache_group( 'object_' . $object_id );
|
WC_Cache_Helper::invalidate_cache_group( 'object_' . $object_id );
|
||||||
|
|
|
@ -113,7 +113,7 @@ class WC_Order_Item_Data_Store implements WC_Order_Item_Data_Store_Interface {
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
* @param int $item_id Item ID.
|
* @param int $item_id Item ID.
|
||||||
* @param string $meta_key Meta key.
|
* @param string $meta_key Meta key.
|
||||||
* @param string $meta_value (default: '').
|
* @param mixed $meta_value (default: '').
|
||||||
* @param bool $delete_all (default: false).
|
* @param bool $delete_all (default: false).
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -68,7 +68,7 @@ interface WC_Order_Item_Data_Store_Interface {
|
||||||
*
|
*
|
||||||
* @param int $item_id Item ID.
|
* @param int $item_id Item ID.
|
||||||
* @param string $meta_key Meta key.
|
* @param string $meta_key Meta key.
|
||||||
* @param string $meta_value Meta value (default: '').
|
* @param mixed $meta_value Meta value (default: '').
|
||||||
* @param bool $delete_all Delete all matching entries? (default: false).
|
* @param bool $delete_all Delete all matching entries? (default: false).
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1098,7 +1098,7 @@ function add_woocommerce_term_meta( $term_id, $meta_key, $meta_value, $unique =
|
||||||
* @deprecated 3.6.0
|
* @deprecated 3.6.0
|
||||||
* @param int $term_id Term ID.
|
* @param int $term_id Term ID.
|
||||||
* @param string $meta_key Meta key.
|
* @param string $meta_key Meta key.
|
||||||
* @param string $meta_value Meta value (default: '').
|
* @param mixed $meta_value Meta value (default: '').
|
||||||
* @param bool $deprecated Deprecated param (default: false).
|
* @param bool $deprecated Deprecated param (default: false).
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -95,7 +95,7 @@ function wc_delete_order_item( $item_id ) {
|
||||||
*
|
*
|
||||||
* @param int $item_id Item ID.
|
* @param int $item_id Item ID.
|
||||||
* @param string $meta_key Meta key.
|
* @param string $meta_key Meta key.
|
||||||
* @param string $meta_value Meta value.
|
* @param mixed $meta_value Meta value.
|
||||||
* @param string $prev_value Previous value (default: '').
|
* @param string $prev_value Previous value (default: '').
|
||||||
*
|
*
|
||||||
* @throws Exception When `WC_Data_Store::load` validation fails.
|
* @throws Exception When `WC_Data_Store::load` validation fails.
|
||||||
|
@ -115,7 +115,7 @@ function wc_update_order_item_meta( $item_id, $meta_key, $meta_value, $prev_valu
|
||||||
*
|
*
|
||||||
* @param int $item_id Item ID.
|
* @param int $item_id Item ID.
|
||||||
* @param string $meta_key Meta key.
|
* @param string $meta_key Meta key.
|
||||||
* @param string $meta_value Meta value.
|
* @param mixed $meta_value Meta value.
|
||||||
* @param bool $unique If meta data should be unique (default: false).
|
* @param bool $unique If meta data should be unique (default: false).
|
||||||
*
|
*
|
||||||
* @throws Exception When `WC_Data_Store::load` validation fails.
|
* @throws Exception When `WC_Data_Store::load` validation fails.
|
||||||
|
@ -137,7 +137,7 @@ function wc_add_order_item_meta( $item_id, $meta_key, $meta_value, $unique = fal
|
||||||
*
|
*
|
||||||
* @param int $item_id Item ID.
|
* @param int $item_id Item ID.
|
||||||
* @param string $meta_key Meta key.
|
* @param string $meta_key Meta key.
|
||||||
* @param string $meta_value Meta value (default: '').
|
* @param mixed $meta_value Meta value (default: '').
|
||||||
* @param bool $delete_all Delete all meta data, defaults to `false`.
|
* @param bool $delete_all Delete all meta data, defaults to `false`.
|
||||||
*
|
*
|
||||||
* @throws Exception When `WC_Data_Store::load` validation fails.
|
* @throws Exception When `WC_Data_Store::load` validation fails.
|
||||||
|
|
|
@ -779,7 +779,7 @@ add_action( 'profile_update', 'wc_update_profile_last_update_time', 10, 2 );
|
||||||
* @param int $meta_id ID of the meta object that was changed.
|
* @param int $meta_id ID of the meta object that was changed.
|
||||||
* @param int $user_id The user that was updated.
|
* @param int $user_id The user that was updated.
|
||||||
* @param string $meta_key Name of the meta key that was changed.
|
* @param string $meta_key Name of the meta key that was changed.
|
||||||
* @param string $_meta_value Value of the meta that was changed.
|
* @param mixed $_meta_value Value of the meta that was changed.
|
||||||
*/
|
*/
|
||||||
function wc_meta_update_last_update_time( $meta_id, $user_id, $meta_key, $_meta_value ) {
|
function wc_meta_update_last_update_time( $meta_id, $user_id, $meta_key, $_meta_value ) {
|
||||||
$keys_to_track = apply_filters( 'woocommerce_user_last_update_fields', array( 'first_name', 'last_name' ) );
|
$keys_to_track = apply_filters( 'woocommerce_user_last_update_fields', array( 'first_name', 'last_name' ) );
|
||||||
|
|
Loading…
Reference in New Issue