Since: 2.3.3
remove_from
Remove an item from the values of a relationship field, remove a value from a number field (field-1), remove time to a date field.
Function Definition
Parameters
Parameter | Type | Details |
---|---|---|
$field | (string) | Field name |
$value | (mixed) | ID(s) to add, int|float to add to number field, string for dates (-1 week), or string for text |
$id | (int) | (optional) ID of the pod item to update |
Returns
(int) The item ID
Additional Information
This is the primary method for clearing a relationship in Pods.