Since: 1.7.9
save_field
Add or edit a field within a Pod
Function Definition
public function save_field ( $params, $table_operation = true, $sanitized = false, $db = true )
Source File: /pods/classes/PodsAPI.php
Parameters
Parameter | Type | Details |
---|---|---|
$params | (array) | An associative array of parameters |
$table_operation | (bool) | (optional) Whether or not to handle table operations |
$sanitized | (bool) | (optional) Decides wether the params have been sanitized before being passed, will sanitize them if false. |
$db | (bool|int) | (optional) Whether to save into the DB or just return field array. |
Additional Parameter Options
Returns
(int) The field ID