update_{$meta_type}_metadata_by_mid

update_{$meta_type}_metadata_by_mid

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

See hook in core

Displaying hooks found in version: wordpress-6.7.1

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

  • /wp-includes/meta.php line 903
    	 * @param int          $meta_id    Meta ID.
    	 * @param mixed        $meta_value Meta value. Must be serializable if non-scalar.
    	 * @param string|false $meta_key   Meta key, if provided.
    	 */
    	$check = apply_filters( "update_{$meta_type}_metadata_by_mid", null, $meta_id, $meta_value, $meta_key );
    	if ( null !== $check ) {
    		return (bool) $check;
    	}
    
    	// Fetch the meta and go on if it's found.
    	$meta = get_metadata_by_mid( $meta_type, $meta_id );