BP_Messages_Notice::populate()
Populate method.
Description
Runs during constructor.
Source
File: bp-messages/classes/class-bp-messages-notice.php
76 77 78 79 80 81 82 83 84 85 86 87 88 89 | public function populate() { global $wpdb ; $bp = buddypress(); $notice = $wpdb ->get_row( $wpdb ->prepare( "SELECT * FROM {$bp->messages->table_name_notices} WHERE id = %d" , $this ->id ) ); if ( $notice ) { $this ->subject = $notice ->subject; $this ->message = $notice ->message; $this ->date_sent = $notice ->date_sent; $this ->is_active = (int) $notice ->is_active; } } |
Changelog
Version | Description |
---|---|
BuddyPress 1.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.