I\'d like to place a directive in my theme\'s functions.php file which appends a classname to the wordpress body tag. Is there a built-in API method for this?
For exampl
You can use the body_class filter, like so:
body_class
function my_plugin_body_class($classes) { $classes[] = 'foo'; return $classes; } add_filter('body_class', 'my_plugin_body_class');
Although, obviously, your theme needs to call the corresponding body_class function.