LLMS_Notification::load()
Load all notification data into the instance
Description Description
Return Return
(self)
Source Source
File: includes/models/model.llms.notification.php
public function load() { global $wpdb; $query = $wpdb->prepare( "SELECT created, updated, status, type, subscriber, trigger_id, user_id, post_id FROM {$this->get_table()} WHERE id = %d", $this->id ); $notification = $wpdb->get_row( $query, ARRAY_A ); if ( $notification ) { foreach ( $notification as $key => $val ) { $this->$key = $val; } $this->html = $this->get_html(); } return $this; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.8.0 | Introduced. |