simcal_no_events_message

The Simple Calendar simcal no events message hook.

Description

apply_filters( 'simcal_no_events_message', (string) $sprintf, (unknown) $calendar_id, (unknown) $from, (unknown) $to ); 

Parameters (4)

0. $sprintf (string) => sprintf( __( 'Nothing from %1$s to %2$s.', 'google-calendar-events' ), date_i18n( $calendar->date_format, $from ), date_i18n( $calendar->date_format, $to ) )
The sprintf.
1. $calendar_id (unknown)
The calendar id.
2. $from (unknown)
The from.
3. $to (unknown)
The to.

Usage

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

Defined (1)

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

/includes/calendars/views/default-calendar-list.php  
  1. echo apply_filters( 'simcal_no_events_message', sprintf(