Skip to content
This repository was archived by the owner on Jul 1, 2025. It is now read-only.

Latest commit

 

History

History
23 lines (17 loc) · 958 Bytes

File metadata and controls

23 lines (17 loc) · 958 Bytes

recent_comments

Get some recent comments depending on the arguments you've passed. The arguments are the same as the one of get_comments wordpress function. This function return an array of WPS_Comment objects.

Parameters

Name Type Description Status Default
$args { Array } The arguments to pass to the get_comments wordpress function optional []

Return { Array<WPS_Comment> } Array of WPS\Comment objects

Example

	$comments = WPS::recent_comments([
  'number' => 3
]);

Author : Olivier Bossel olivier.bossel@gmail.com https://olivierbossel.com

See : See more : https://codex.wordpress.org/Function_Reference/get_comments