Function Signature:
render_block_core_latest_comments
Function Description:
Renders the `core/latest-comments` block on server.
Function Examples:
⚠️ Examples below are generated with GPT-3 once every hour. Do not take them too seriously.
Consider them as some extra input in your learning process - reason about them. Will it work? What could fail?
// Display the latest 5 comments with default settings
echo render_block_core_latest_comments(array(
'postsToShow' => 5,
));
// Display the latest 3 comments with avatars enabled
echo render_block_core_latest_comments(array(
'postsToShow' => 3,
'displayAvatar' => true,
));
// Display the latest comments from a specific post type
echo render_block_core_latest_comments(array(
'postsToShow' => 5,
'postType' => 'product',
));