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::create()
Create the item in the database
Description Description
Return Return
(int|false)
Source Source
File: includes/abstracts/llms.abstract.database.store.php
private function create() { if ( ! $this->data ) { return false; } global $wpdb; $format = array_map( array( $this, 'get_column_format' ), array_keys( $this->data ) ); $res = $wpdb->insert( $this->get_table(), $this->data, $format ); if ( 1 === $res ) { $this->id = $wpdb->insert_id; do_action( 'llms_' . $this->type . '_created', $this->id, $this ); return $wpdb->insert_id; } 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: