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

Is there a way to add background-image to theme.json?

Background image in theme.json is not yet supported In your theme.json file, you can define a CSS class name for the element that you want to add the background image to. For example: “styles”: { “hf-bg”: { “backgroundColor”: “#ffffff” } } In this example, we’ve defined a style called hf-bg that sets the backgroundColor property … Read more

Bad Request 400… jQuery ajax post of json data to wordpress admin-ajax.php

To elaborate on my comments, your issue is here: contentType: ‘application/json; charset=utf-8’, data: JSON.stringify({ action: ‘cdnjs_add_library’, library: library }), When sending data to admin-ajax.php you need to set the action property of data to the action name, eg. cdnjs_add_library. That’s not what you’re doing here. data is not an object with an action property, as … Read more