gravityforms_business_hours_output_closed_template

Modify the output of the open days.

Description

apply_filters( 'gravityforms_business_hours_output_closed_template', (string) $output_template, (string) $days_day, (array) $replacements ); 

Data inside } will be replaced with the appropriate values.

Parameters (3)

0. $output_template (string)
The output template.
1. $days_day (string)
Day of the week value
2. $replacements (array)
Default values to replace with

Usage

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

Defined (1)

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

/gravity-forms-business-hours.php  
  1. $output_template = apply_filters( 'gravityforms_business_hours_output_closed_template', $output_template, $days[ $day ], $replacements );