bloginfo_url
Filters the URL returned by get_bloginfo().
Usage
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(string)
- The URL returned by bloginfo().
- $show(string)
- Type of information requested.
Changelog
Since 2.0.5 | Introduced. |
Where the hook is called
bloginfo_url
wp-includes/general-template.php 934
$output = apply_filters( 'bloginfo_url', $output, $show );