jetpack_holiday_snow_option_name

This filter is documented in modules/holiday-snow.php.

Description

apply_filters( 'jetpack_holiday_snow_option_name', (string) $jetpack_holiday_snow_enabled ); 

Parameters (1)

0. $jetpack_holiday_snow_enabled (string) => 'jetpack_holiday_snow_enabled'
The jetpack holiday snow enabled.

Usage

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

Defined (1)

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

/modules/holiday-snow.php  
  1. return apply_filters( 'jetpack_holiday_snow_option_name', 'jetpack_holiday_snow_enabled' );