Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LLMS_Post_Relationships::delete_table_records( WP_Post $post, array $data )
Delete records from a table that are related to the deleted post.
Parameters Parameters
- $post
-
(WP_Post) (Required) WP Post that's been deleted.
- $data
-
(array) (Required) Relationship data array.
Return Return
(void)
Source Source
File: includes/class.llms.post.relationships.php
private function delete_table_records( $post, $data ) { global $wpdb; $wpdb->delete( // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching $wpdb->prefix . $data['table_name'], array( $data['table_key'] => $post->ID, ), '%d' ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.37.8 | Introduced. |