Search code examples
wordpresspodscms

deleting pod items


does any one have any suggestions on deleting pod items in wordpress using triggers such as a button click or something similiar?


Solution

  • Are you still having issues with this? $id isn't the same as the pod_id.

    Try this:

    <?php
    $id = 3;
    $Record = new Pod('product',$id);
    $api = new PodAPI();
    $api->drop_pod_item(array('pod_id'=>$Record->get_pod_id()));