Archive | Functions by letter w RSS feed for this section

wp_count_comments

Retrieve total comments for blog or single post.The properties of the returned object contain the ‘moderated’, ‘approved’, and spam comments for either the entire blog or single post. Those properties contain the amount of comments that match the status. The ‘total_comments’ property contains the integer of total comments.

3499

Continue reading

wp_count_attachments

Count number of attachments for the mime type(s).If you set the optional mime_type parameter, then an array will still be returned, but will only have the item you are looking for. It does not give you the number of attachments that are children of a post. You can get that by counting the number of children that post has.

3497

Continue reading

wp_cookie_constants

Defines cookie related WordPress constantsDefines constants after multisite is loaded. Cookie-related constants may be overridden in ms_network_cookies().

3495

Continue reading