WP HTTP API call response

This my solution: $url=”##MYURL##?api_token=##APIKEY##”; $args = array( ‘headers’ => array( ”,’cache-control’ => ‘no-cache’, ‘content-type’ => ‘application/json’ ), ‘body’ => ‘{“pass”:{“serial_number”:”123456″,”Name”:”Michele”,”Date”:”2017/11/11″,”Type”:”Abb.Annuale”,”Issued”:”Genn.2016″,”Al”:”Dic.2018″,”Number”:”0123456789412″}}’, ); $response = wp_remote_post( $url, $args ); $body = wp_remote_retrieve_body( $response ); var_dump($body);

Function to disable “href” anchor tags that contain “a data-name” on mobile only

Alright figured it out. As Jacob pointed out, it should go into the script that makes data-name show as a tooltip. So I added the following: if (jQuery(window).width() < 480) { jQuery(this).removeAttr(“href”); } My final code: jQuery(document).on({ mouseenter: function(e) { if (jQuery(window).width() < 480) { jQuery(this).removeAttr(“href”); } setTimeoutConst = setTimeout(function() { tooltip.open(e); }, 200); }, … Read more