Can somebody please tell me how to use the bloginfo filter?
-
Hey guys,
hoping some plugin guru can help me out. I’m just starting out writing plugins and right now I’m doing on that needs to replace the bloginfo(‘description’) with another string. I just can’t get around how to do this though.
<?php function replace_description($bloginfo) { $descriptionreplacement = "A string"; $bloginfo['description'] = $descriptionreplacement; return $bloginfo; } ?>
I get really strange results with this, when using this specific example I get a replaced title and description, but only the first letter of it is changed, it’s an A now (Aust another WordPress weblog).
When simply replace $bloginfo it does replace correctly, but everything is replaced (including title). Anybody can help?
Walter
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Can somebody please tell me how to use the bloginfo filter?’ is closed to new replies.