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

Have Custom Taxonomy Slug Fall Under Custom Post Type Slug

You can do that by writing a function using the ‘generate_rewrite_rules’ WordPress hook. https://developer.wordpress.org/reference/hooks/generate_rewrite_rules/ <?php function guides_cpt_generating_rule($wp_rewrite) { $rules = array(); $terms = get_terms( array( ‘taxonomy’ => ‘venue-type’, ‘hide_empty’ => false, ) ); $post_type=”guide”; foreach ($terms as $term) { $rules[‘guide/’ . $term->slug . ‘/([^/]*)$’] = ‘index.php?post_type=” . $post_type. “&guide_post_type=$matches[1]&name=$matches[1]’; } // merge with global rules … Read more