mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-05-20 11:14:28 +00:00
Docs: Reference WP_Comment_Query::__construct() as the source of information on accepted arguments in get_comments() and get_approved_comments().
See #41017. git-svn-id: https://develop.svn.wordpress.org/trunk@41940 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -138,7 +138,7 @@ function check_comment($author, $email, $url, $comment, $user_ip, $user_agent, $
|
||||
* @since 4.1.0 Refactored to leverage WP_Comment_Query over a direct query.
|
||||
*
|
||||
* @param int $post_id The ID of the post.
|
||||
* @param array $args Optional. See WP_Comment_Query::query() for information on accepted arguments.
|
||||
* @param array $args Optional. See WP_Comment_Query::__construct() for information on accepted arguments.
|
||||
* @return int|array $comments The approved comments, or number of comments if `$count`
|
||||
* argument is true.
|
||||
*/
|
||||
@@ -217,7 +217,7 @@ function get_comment( &$comment = null, $output = OBJECT ) {
|
||||
*
|
||||
* @since 2.7.0
|
||||
*
|
||||
* @param string|array $args Optional. Array or string of arguments. See WP_Comment_Query::parse_query()
|
||||
* @param string|array $args Optional. Array or string of arguments. See WP_Comment_Query::__construct()
|
||||
* for information on accepted arguments. Default empty.
|
||||
* @return int|array List of comments or number of found comments if `$count` argument is true.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user