1. Home
  2. Docs
  3. Function Reference
  4. Functions
  5. simpods_delete_fn()

simpods_delete_fn()

Delete database records. If a pods table is linked, delete associated data as well, $pod->delete() is implemented. If it is normal post, wp_delete_post() is implemented. If it is a custom table, it will bind the fields and then delete.

Copy to Clipboard

Parameters

$table_str

Target table (without table_prefix)

$where_arr

Locate the entries to delete

$echoQuery_bln

If true the query will be echoed out (default false)

$prefixMe_bln

If true, prefixes table names with the WordPress table prefix (default true)

Return

boolean

Whether the records have been deleted or not.

Example

Copy to Clipboard

Location

This function can be found here: