WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 3 down vote accepted

You're lookign for the bloginfo filter.

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


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.