Skip to content

Instantly share code, notes, and snippets.

@remkus
Created September 22, 2011 14:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save remkus/1234987 to your computer and use it in GitHub Desktop.
Save remkus/1234987 to your computer and use it in GitHub Desktop.
Poor Coding standards - or even, lack thereof
<?php
function custom_body_class($classes) {
if (!is_user_logged_in())
$classes[] = 'not-loggedin';
return $classes;
}
add_filter('body_class','custom_body_class');
@remkus
Copy link
Author

remkus commented Apr 24, 2012

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment