Forminator + Hubspot Workflows

For anyone that want’s to know, I fixed it myself: function send_form_data_to_hubspot_pipeline($form_data, $form_id) { // Set the API key and pipeline ID $api_key = ‘YOUR-HS-API-KEY’; $pipeline_id = ‘YOUR-PIPELINE-ID’; // Create the contact data array $contact_data = array( ‘properties’ => array( array( ‘property’ => ’email’, ‘value’ => $form_data[’email-1′] ), array( ‘property’ => ‘firstname’, ‘value’ => $form_data[‘name-1’] … Read more

JS WordPress API fetch no response headers

I’ve finally got it, the parse is not an argument of query but is actually the second argument of apiFetch so it should’ve been: const response = await apiFetch({ path: addQueryArgs(‘/wp/v2/posts’, query), parse: false, });

External api call using wordpress

Your curl request should work from the command line. Put you will want to use make it in a PHP file: $ch = curl_init(); $url = “https://api.com/”; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, 1); http_build_query(array(‘postvar1’ => ‘value1’))); // Receive server response … curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $api_output = curl_exec($ch); curl_close($ch); Which php file you put the curl … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)