Skip to content

Instantly share code, notes, and snippets.

@remkus
Created September 22, 2011 14:56
Show Gist options
  • Select an option

  • Save remkus/1234987 to your computer and use it in GitHub Desktop.

Select an option

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

remkus commented Apr 24, 2012

Copy link
Copy Markdown
Author

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