Option Values – any recommended references?
-
I am unable to find anything explaining “Option values”, such as option_blogdescription, which apparently can be used in filters instead of bloginfo(‘description’).
I found a 3 year old post response by Otto, and I found the code to work perfectly. http://wordpress.org/support/topic/can-somebody-please-tell-me-how-to-use-the-bloginfo-filter
But I would very much like to see some documentation relating to Option Values, such as which bloginfo variables work in the option_xyz format, etc.
Thanks for any direction. –Bill
(Otto’s post, in part: )
Note that some of these bloginfo things have been replaced with options values, and so working there would be a better idea. The ‘description’ is one of these, it’s an option called ‘blogdescription’. You could more easily modify it like so:function replace_description($description) {
// do something to $description
return $description;
}
add_filter(‘option_blogdescription’,’replace_description’);No need for any checking of any kind. It’s faster too, since it’s not called for every single bloginfo call.
- The topic ‘Option Values – any recommended references?’ is closed to new replies.