PluginProbe
Timetics – Appointment Booking Calendar & Scheduling / 1.0.38
Timetics – Appointment Booking Calendar & Scheduling v1.0.38
1.0.62 1.0.63 1.0.61 1.0.60 1.0.59 1.0.58 1.0.57 1.0.56 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.19 1.0.2 1.0.20 1.0.21 1.0.22 All 64 releases
← All changes | utils/global-helper.php +26 -2 1.0.161.0.38 View file →
@@ -403,8 +403,9 @@
403 403 */
404 404 function timetics_update_default_settings() {
405 405 $settings = [
406 406 'google_auth_redirect_uri' => timetics_get_auth_redirect_uri( 'google-auth' ),
407 + 'outlook_auth_redirect_uri'=> timetics_get_auth_redirect_uri( 'outlook-auth' ),
407 408 'default_booking_status' => 'pending',
408 409 'currency' => 'USD',
409 410 'primary_color' => '#3161F1',
410 411 'secondary_color' => '#6188ff',
@@ -719,11 +720,34 @@
719 720 $user_data = [
720 721 'id' => $user->ID,
721 722 'username' => $user->user_login,
722 723 'email' => $user->user_email,
723 - 'roles' => ['administrator'],
724 + 'roles' => $user-> roles,
724 725 ];
725 -
726 726 return $user_data;
727 727 }
728 728 }
729 729
730 +if ( ! function_exists( 'timetics_connected_platforms' ) ) {
731 +
732 + /**
733 + * Get connected platforms
734 + *
735 + * @param integer $id
736 + *
737 + * @return array Connected platform lists
738 + */
739 + function timetics_connected_platforms( $id ) {
740 + $integrations = timetics_get_staff_integrations( $id );
741 + $integration_names = [];
742 +
743 + if ( $integrations ) {
744 + foreach ( $integrations as $integration ) {
745 + if ( $integration['connected'] ) {
746 + $integration_names[] = $integration['id'];
747 + }
748 + }
749 + }
750 +
751 + return $integration_names;
752 + }
753 +}