function custom_get_bloginfo( $show = '', $filter = 'raw' ) {
switch( $show ) {
case 'description':
$output = "my description";
break;
default:
$output = get_option('blogname');
break;
}
return $output;
}
add_filter('get_bloginfo', 'custom_get_bloginfo', 1, 2);
i used above code its not work..
get_bloginfo function supports two filters but only if second argument “filter” is set to “display” i.e.
So if you wish to use this for some plugin, it will not be of much use.
Filters that can be used:
Usage:
UPDATE:
If you just wish to replace site description you can do this:
Ok I understand it now, the better way to do it is to edit your header.php and look for bloginfo( ‘description’ ) then change it with custom_get_bloginfo() then add you can use this to your function.php