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.


Top ↑

Return Return

(array)


Top ↑

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',
    );
 
}


Top ↑

Changelog Changelog

Changelog
Version Description
3.37.12 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.