bloginfo_url
Filters the URL returned by get_bloginfo().
Использование
add_filter( 'bloginfo_url', 'wp_kama_bloginfo_url_filter', 10, 2 );
/**
* Function for `bloginfo_url` filter-hook.
*
* @param string $output The URL returned by bloginfo().
* @param string $show Type of information requested.
*
* @return string
*/
function wp_kama_bloginfo_url_filter( $output, $show ){
// filter...
return $output;
}
- $output(строка)
- The URL returned by bloginfo().
- $show(строка)
- Type of information requested.
Список изменений
| С версии 2.0.5 | Введена. |
Где вызывается хук
bloginfo_url
wp-includes/general-template.php 934
$output = apply_filters( 'bloginfo_url', $output, $show );