Created
September 22, 2011 14:56
-
-
Save remkus/1234987 to your computer and use it in GitHub Desktop.
Poor Coding standards - or even, lack thereof
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function custom_body_class($classes) { | |
if (!is_user_logged_in()) | |
$classes[] = 'not-loggedin'; | |
return $classes; | |
} | |
add_filter('body_class','custom_body_class'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is an example function to demonstrate poor coding standards. More info here: http://remkusdevries.com/when-sharing-wordpress-related-code-snippets-i-can-haz-standards-please/