of_default_background_position
The SKT Black of default background position hook.
Description
apply_filters( 'of_default_background_position', $current );
Parameters (1)
- 0. $current
- The current.
Usage
- To run the hook, copy the example below.
- $current = apply_filters( 'of_default_background_position', $current );
- if ( !empty( $current ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the of_default_background_position callback
- function filter_of_default_background_position( $current ) {
- // make filter magic happen here...
- return $current;
- };
- // add the filter
- add_filter( 'of_default_background_position', 'filter_of_default_background_position', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'of_default_background_position', 'filter_of_default_background_position', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /inc/includes/class-options-sanitize.php
- return apply_filters( 'of_default_background_position', current( $recognized ) );