fbpx

Welcome to WordPress. This is your first post. Edit or delete it, then start writing!

Categories: Uncategorized

1 Comment

A WordPress Commenter · August 28, 2020 at 9:46 pm

Hi, this is a comment.
To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard.
Commenter avatars come from Gravatar.

Comments are closed.

} // add_action('wp_footer', 'add_to_footer_livechat_custom_service'); function add_to_footer_livechat_custom_service() { // Manage the LiveChat Groups // get_template_part('salesChat'); // get_template_part('generalChat'); // get_template_part('customerServiceChat'); if ( is_user_logged_in() ) { // Get user role $user = wp_get_current_user(); $roles = ( array ) $user->roles; // Request the Memberium Active Campaign API $api = 'https://cristianemmanuelargueta1.api-us1.com/api/3'; $args = array( 'method' => 'GET', ); $url = $api.'/accounts/'.$user->ID.''; // $request_mac = wp_remote_request( $url, $args ); // If is sucriber go to Customer Service if ( in_array('suscriber', $roles) || in_array('memberium_vipmember', $roles) || in_array('memberium_blwtradingacademy', $roles) || in_array('memberium_2minappmembers', $roles) || in_array('memberium_blwfxtool', $roles) || in_array('memberium_masterclass', $roles) ) { get_template_part('customerServiceChat'); } elseif (in_array('administrator', $roles)) { get_template_part('generalChat'); } else { get_template_part('salesChat'); } } else { get_template_part('salesChat'); } } add_action('wp_head', 'add_to_head'); function add_to_head() { ?>