update_{$meta_type}_metadata

update_{$meta_type}_metadata

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('update_{$meta_type}_metadata') is found 1 times:

  • /wp-includes/meta.php line 235
    	 * @param mixed     $prev_value Optional. Previous value to check before updating.
    	 *                              If specified, only update existing metadata entries with
    	 *                              this value. Otherwise, update all entries.
    	 */
    	$check = apply_filters( "update_{$meta_type}_metadata", null, $object_id, $meta_key, $meta_value, $prev_value );
    	if ( null !== $check ) {
    		return (bool) $check;
    	}
    
    	// Compare existing value to new value if no prev value given and the key exists only once.
    	if ( empty( $prev_value ) ) {