Created
May 11, 2020 14:38
-
-
Save kartikparmar/97f275cc5ed413f8e8c525cef6a49ac4 to your computer and use it in GitHub Desktop.
Additional Information in Google Event Summary and Description
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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