Filter hook 'bloginfo'

in WP Core File wp-includes/general-template.php at line 944

View Source

bloginfo

Filter Hook
Description
Filters the site information returned by get_bloginfo().

Hook Information

File Location wp-includes/general-template.php View on GitHub
Hook Type Filter
Line Number 944

Hook Parameters

Type Name Description
mixed $output The requested non-URL site information.
string $show Type of information requested.

Usage Examples

Basic Usage
<?php
// Hook into bloginfo
add_filter('bloginfo', '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:944 - How this hook is used in WordPress core
<?php
 939  			 * @since 0.71
 940  			 *
 941  			 * @param mixed  $output The requested non-URL site information.
 942  			 * @param string $show   Type of information requested.
 943  			 */
 944  			$output = apply_filters( 'bloginfo', $output, $show );
 945  		}
 946  	}
 947  
 948  	return $output;
 949  }

PHP Documentation

<?php
/**
			 * Filters the site information returned by get_bloginfo().
			 *
			 * @since 0.71
			 *
			 * @param mixed  $output The requested non-URL site information.
			 * @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.