twentyeleven_layouts
Filter the Twenty Eleven layout options.
Description
Parameters (1)
- 0. $layout_options (unknown)
- The layout options.
Usage
- To run the hook, copy the example below.
- $layout_options = apply_filters( 'twentyeleven_layouts', $layout_options );
- if ( !empty( $layout_options ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the twentyeleven_layouts callback
- function filter_twentyeleven_layouts( $layout_options ) {
- // make filter magic happen here...
- return $layout_options;
- };
- // add the filter
- add_filter( 'twentyeleven_layouts', 'filter_twentyeleven_layouts', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'twentyeleven_layouts', 'filter_twentyeleven_layouts', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /inc/theme-options.php
- return apply_filters( 'twentyeleven_layouts', $layout_options );