Is there anyway to change the blog title and description using PHP code? Can't find any references. Trying to use that for an theme option panel. Tnx.
Basically, There's a function called wp_title
(codex). Look for the "header.php" file in your template's directory.
Luckily for us, there's always a filter for this function. You can read more about it over here wp_title filter.
If you're using a default template, check out the functions.php
file which is already using that filter. (So you rather change it instead of adding another one)