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

simpods_delete()

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

Target table (without table_prefix)

$wheres

Locate the entries to delete

$can_echo_query

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

$can_prefix

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
Tags