LLMS_Comments::get_approved_map()
Retrieve an array mapping database values to their human-readable meanings
Description Description
The array key is the value stored in the $wpdb->comments table for the comment_approved
column.
The array values are the equivalent value as expected by the return of the wp_count_comments()
function.
Return Return
(array)
Source Source
File: includes/class.llms.comments.php
protected static function get_approved_map() { return array( '0' => 'moderated', '1' => 'approved', 'spam' => 'spam', 'trash' => 'trash', 'post-trashed' => 'post-trashed', ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.37.12 | Introduced. |