twentyfourteen_custom_background_args
The Twenty Fourteen twentyfourteen custom background args hook.
Description
Parameters (1)
- 0. $array — Optional. (array) =>
array( 'default-color' => 'f5f5f5', )
- The array.
Usage
- To run the hook, copy the example below.
- $array = apply_filters( 'twentyfourteen_custom_background_args', $array );
- if ( !empty( $array ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the twentyfourteen_custom_background_args callback
- function filter_twentyfourteen_custom_background_args( $array ) {
- // make filter magic happen here...
- return $array;
- };
- // add the filter
- add_filter( 'twentyfourteen_custom_background_args', 'filter_twentyfourteen_custom_background_args', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'twentyfourteen_custom_background_args', 'filter_twentyfourteen_custom_background_args', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /functions.php
- add_theme_support( 'custom-background', apply_filters( 'twentyfourteen_custom_background_args', array(