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_Abstract_Database_Store::update( array $data )
Update object data in the database
Description Description
Parameters Parameters
- $data
-
(array) (Required) data to update as key=>val
Return Return
(bool)
Source Source
File: includes/abstracts/llms.abstract.database.store.php
private function update( $data ) { global $wpdb; $format = array_map( array( $this, 'get_column_format' ), array_keys( $data ) ); $where = array_combine( array_keys( $this->primary_key ), array( $this->id ) ); $res = $wpdb->update( $this->get_table(), $data, $where, $format, array_values( $this->primary_key ) ); if ( $res ) { do_action( 'llms_' . $this->type . '_updated', $this->id, $this ); return true; } return false; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.14.0 | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: