drop_pod_item

(Since 1.7.9) -- drop a pod item
function drop_pod_item($params)

Parameters

$params is an ASSOCIATIVE ARRAY that supports the following attributes:
ParameterTypeDetails
pod_id INT the pod_id of the chosen item
tbl_row_id INT the Pod Item ID (found in wp_pod_tbl_podname.id) of the chosen item
datatype VARCHAR the pod name (like 'podname') of the chosen item
datatype_id INT the pod type ID (found in wp_pod_types.id) of the chosen item

Returns

Nothing, or a string beginning with "Error".

Examples

$api = new PodAPI();

// You must find $pod_id separately!
$params = array('pod_id' => $pod_id); // PRE 2.0
$api->drop_pod_item($params);

$params = array('tbl_row_id' => $tbl_row_id,'datatype'=>'mypod');
$api->drop_pod_item($params);

$params = array('tbl_row_id' => $tbl_row_id,'datatype_id'=>3);
$api->drop_pod_item($params);
See Also