{"id":1568,"date":"2005-01-13T00:08:53","date_gmt":"2005-01-13T00:08:53","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/recent-comments\/"},"modified":"2021-02-10T17:03:47","modified_gmt":"2021-02-10T17:03:47","slug":"recent-comments","status":"publish","type":"plugin","link":"https:\/\/tah.wordpress.org\/plugins\/recent-comments\/","author":5279457,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.1","stable_tag":"trunk","tested":"","requires":"","requires_php":"","requires_plugins":"","header_name":"Recent Comments","header_author":"Automattic","header_description":"","assets_banners_color":"","last_updated":"2021-02-10 17:03:47","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/wordpress.org\/extend\/plugins\/recent-comments\/","header_author_uri":"http:\/\/automattic.com\/","rating":0,"author_block_rating":0,"active_installs":200,"downloads":31962,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"1.15":{"tag":"1.15","author":"MtDewVirus","date":"2008-01-21 23:01:02"},"1.16":{"tag":"1.16","author":"MtDewVirus","date":"2008-01-21 23:01:02"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.15","1.16"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[107,245,2281],"plugin_category":[44],"plugin_contributors":[77494,77565,77580],"plugin_business_model":[],"class_list":["post-1568","plugin","type-plugin","status-publish","hentry","plugin_tags-comments","plugin_tags-list","plugin_tags-recent","plugin_category-discussion-and-community","plugin_contributors-automattic","plugin_contributors-nickmomrik","plugin_contributors-viper007bond","plugin_committers-automattic","plugin_committers-nickmomrik"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/recent-comments.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Creates functions to assist in displaying a list of the most recent comments. Provides more configurability than the widget that comes with WordPress.<\/p>\n\n<h3>Configuration<\/h3>\n\n<p>You may pass parameters when calling the function to configure some of the options. Parameters are accepted only in the <a href=\"http:\/\/codex.wordpress.org\/How_to_Pass_Tag_Parameters#Tags_with_query-string-style_parameters\">query-string-style<\/a>.<\/p>\n\n<h4>list_most_recent_comments()<\/h4>\n\n<p>In addition to the parameters that <a href=\"http:\/\/codex.wordpress.org\/Function_Reference\/get_comments\">get_comments()<\/a> and <code>get_most_recent_comments()<\/code> (see below) accept, this function accepts the following parameters:<\/p>\n\n<ul>\n<li><code>excerpt_words<\/code> -- The number of words from the comment to display<\/li>\n<li><code>excerpt_chars<\/code> -- Or alternately the number of characters from the comment to display<\/li>\n<li><code>comment_format<\/code> -- Allows you to pick from two predefined display formats:<\/li>\n<\/ul>\n\n<ol>\n<li><a href=\"#commentlink\">Comment Author<\/a> on <a href=\"#postlink\">Post Title<\/a><\/li>\n<li><strong>Comment Author:<\/strong> <a href=\"#commentlink\">This is the comment excerpt<\/a><\/li>\n<\/ol>\n\n<p>Example:<\/p>\n\n<pre><code>&lt;?php list_most_recent_comments( 'excerpt_words=5' ); ?&gt;\n<\/code><\/pre>\n\n<h4>get_most_recent_comments()<\/h4>\n\n<p>A more powerful version of <a href=\"http:\/\/codex.wordpress.org\/Function_Reference\/get_comments\">get_comments()<\/a>. It accepts the same parameters as well as the following ones:<\/p>\n\n<ul>\n<li><code>passworded_posts<\/code> -- Boolean to control showing comments on passworded posts or not. Defaults to <code>false<\/code>.<\/li>\n<li><code>showpings<\/code> -- Boolean to control showing pings and trackbacks or not. Defaults to <code>false<\/code>.<\/li>\n<li><code>post_types<\/code> -- Array of post types to include comments from. Defaults to posts and pages: <code>array( 'post', 'page' )<\/code><\/li>\n<li><code>post_statuses<\/code> -- Array of post statuses to include comments from.  Defaults to published posts and static pages: <code>array( 'publish', 'static' )<\/code><\/li>\n<\/ul>\n\n<p>Arguments should likely be passed as an array instead of a string.<\/p>\n\n<p>Example:<\/p>\n\n<pre><code>&lt;?php\n\nlist_most_recent_comments( array(\n    'showpings' =&gt; true,\n    'post_types' =&gt; array( 'post', 'page', 'foobar' ),\n) );\n\n?&gt;\n<\/code><\/pre>\n\n<!--section=installation-->\n<ol>\n<li>Visit Plugins -&gt; Add New in your WordPress administration area and search for the name of this plugin.<\/li>\n<li>Activate the plugin.<\/li>\n<li>Add <code>&lt;?php list_most_recent_comments(); ?&gt;<\/code> to your theme.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>Version 2.0.0<\/h4>\n\n<ul>\n<li>Recoded from scratch to make use of <code>get_comments()<\/code> instead of a direct database query.<\/li>\n<li>Additional parameters added.<\/li>\n<\/ul>\n\n<h4>Version 1.0.0<\/h4>\n\n<ul>\n<li>Original release<\/li>\n<\/ul>","raw_excerpt":"Creates functions to assist in displaying a list of the most recent comments.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/1568","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=1568"}],"author":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/automattic"}],"wp:attachment":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=1568"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=1568"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=1568"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=1568"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=1568"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=1568"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}