bloginfo_url
Filter HookDescription
Filters the URL returned by get_bloginfo().Hook Information
| File Location |
wp-includes/general-template.php
View on GitHub
|
| Hook Type | Filter |
| Line Number | 934 |
Hook Parameters
| Type | Name | Description |
|---|---|---|
string
|
$output
|
The URL returned by bloginfo(). |
string
|
$show
|
Type of information requested. |
Usage Examples
Basic Usage
<?php
// Hook into bloginfo_url
add_filter('bloginfo_url', 'my_custom_filter', 10, 2);
function my_custom_filter($output, $show) {
// Your custom filtering logic here
return $output;
}
Source Code Context
wp-includes/general-template.php:934
- How this hook is used in WordPress core
<?php
929 * @since 2.0.5
930 *
931 * @param string $output The URL returned by bloginfo().
932 * @param string $show Type of information requested.
933 */
934 $output = apply_filters( 'bloginfo_url', $output, $show );
935 } else {
936 /**
937 * Filters the site information returned by get_bloginfo().
938 *
939 * @since 0.71
PHP Documentation
<?php
/**
* Filters the URL returned by get_bloginfo().
*
* @since 2.0.5
*
* @param string $output The URL returned by bloginfo().
* @param string $show Type of information requested.
*/
Quick Info
- Hook Type: Filter
- Parameters: 2
- File: wp-includes/general-template.php
Related Hooks
Related hooks will be displayed here in future updates.