Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

How can I change the site's bloginfo description in runtime from a plugin? I tried these, but none of them work:

add_filter('description', 'ab_arq_generate');
add_filter('blogdescription', 'ab_arq_generate');

My point would be to make a random quote in the place of the description regardless of the actual template.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

You're lookign for the bloginfo filter.

<?php
add_filter( 'bloginfo', 'wpse33522_change_bloginfo', 10, 2 );
function wpse33522_change_bloginfo( $text, $show )
{
    if ('description' == $show) {
        $text = 'Some New Description';
    }
    return $text;
}
share|improve this answer
    
Thank you very much! –  Adam B Nov 11 '11 at 17:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.