Add arguments to the wp_dropdown_cats filter, and docs.
props olivM. fixes #24103. Built from https://develop.svn.wordpress.org/trunk@27065 git-svn-id: http://core.svn.wordpress.org/trunk@26938 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
38bd18bd08
commit
08a1d44ba5
|
@ -371,7 +371,15 @@ function wp_dropdown_categories( $args = '' ) {
|
||||||
if ( ! $r['hide_if_empty'] || ! empty($categories) )
|
if ( ! $r['hide_if_empty'] || ! empty($categories) )
|
||||||
$output .= "</select>\n";
|
$output .= "</select>\n";
|
||||||
|
|
||||||
$output = apply_filters( 'wp_dropdown_cats', $output );
|
/**
|
||||||
|
* Filter the result of wp_dropdown_categories().
|
||||||
|
*
|
||||||
|
* @since 2.1.0
|
||||||
|
*
|
||||||
|
* @param $output HTML content.
|
||||||
|
* @param $r Arguments used to build the dropdown.
|
||||||
|
*/
|
||||||
|
$output = apply_filters( 'wp_dropdown_cats', $output, $r );
|
||||||
|
|
||||||
if ( $echo )
|
if ( $echo )
|
||||||
echo $output;
|
echo $output;
|
||||||
|
|
Loading…
Reference in New Issue