twentyeleven_layout_classes

Filter the Twenty Eleven layout body classes.

Description

apply_filters( 'twentyeleven_layout_classes', (unknown) $classes, (unknown) $current_layout ); 

Parameters (2)

0. $classes (unknown)
The classes.
1. $current_layout (unknown)
The current layout.

Usage

To run the hook, copy the example below.
  1. $classes = apply_filters( 'twentyeleven_layout_classes', $classes, $current_layout ); 
  2.  
  3. if ( !empty( $classes ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the twentyeleven_layout_classes callback 
  2. function filter_twentyeleven_layout_classes( $classes, $current_layout ) { 
  3. // make filter magic happen here... 
  4. return $classes
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'twentyeleven_layout_classes', 'filter_twentyeleven_layout_classes', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'twentyeleven_layout_classes', 'filter_twentyeleven_layout_classes', 10, 2 ); 

Defined (1)

The filter is defined in the following location(s).

/inc/theme-options.php  
  1. $classes = apply_filters( 'twentyeleven_layout_classes', $classes, $current_layout );