Add a filter for wp_list_comments() arguments.
props greenshady, hlashbrooke. fixes #19581. Built from https://develop.svn.wordpress.org/trunk@28285 git-svn-id: http://core.svn.wordpress.org/trunk@28113 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8b72aebdaa
commit
d70e8a38fa
|
@ -1918,6 +1918,15 @@ function wp_list_comments( $args = array(), $comments = null ) {
|
|||
|
||||
$r = wp_parse_args( $args, $defaults );
|
||||
|
||||
/**
|
||||
* Filter the arguments used in retrieving the comment list.
|
||||
*
|
||||
* @since 4.0.0
|
||||
*
|
||||
* @param array $r An array of arguments for displaying comments.
|
||||
*/
|
||||
$r = apply_filters( 'wp_list_comments_args', $r );
|
||||
|
||||
// Figure out what comments we'll be looping through ($_comments)
|
||||
if ( null !== $comments ) {
|
||||
$comments = (array) $comments;
|
||||
|
|
Loading…
Reference in New Issue