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
153 154 155 156 157 158 159 160 161 162 163 | 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. |