Created
April 19, 2016 10:18
-
-
Save SirDarcanos/bcf20ece87262c4579dfb0561e77654f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
function wc_conver_special_chars_bookings( $data ) { | |
if ( isset( $data['summary'] ) ) { | |
$data['summary'] = htmlspecialchars_decode( $data['summary'] ); | |
} | |
if ( isset( $data['description'] ) ) { | |
$data['description'] = htmlspecialchars_decode( $data['description'] ); | |
} | |
return $data; | |
} | |
add_filter( 'woocommerce_bookings_gcalendar_sync', 'wc_conver_special_chars_bookings' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment