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

	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.