Skip to content

Instantly share code, notes, and snippets.

@kartikparmar
Created May 11, 2020 14:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kartikparmar/97f275cc5ed413f8e8c525cef6a49ac4 to your computer and use it in GitHub Desktop.
Save kartikparmar/97f275cc5ed413f8e8c525cef6a49ac4 to your computer and use it in GitHub Desktop.
Additional Information in Google Event Summary and Description
<?php
/**
* Additonal Information in Google Event Summary
*
* @param string $summary Inforation of the Google Event Summary.
* @param obj $data Prepared App data for Gcal Calculation.
*/
function bkap_google_event_summary_callback( $summary, $data ){
$summary .= ' This is additional infomration event summary';
return $summary;
}
add_filter( 'bkap_google_event_summary', 'bkap_google_event_summary_callback', 10, 2 );
/**
* Additonal Information in Google Event Description
*
* @param string $desc Inforation of the Google Event Description.
* @param obj $data Prepared App data for Gcal Calculation.
*/
function bkap_google_event_description_callback( $desc, $data ){
$desc .= ' This is additional infomration in event description';
return $desc;
}
add_filter( 'bkap_google_event_description', 'bkap_google_event_description_callback', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment