Landing Page TypeForm Response

print_r($_POST); $token = “tfp_G1KjScDoCo9ciiXKUGZTHFUoYwnK76sMArX6kpjLkHUZ_3sp7T7jeMDR579”; header(‘Content-Type: application/json’); // Specify the type of data $ch = curl_init(‘https://api.typeform.com/forms/NQP4LUEZ/responses?page_size=1’); $authorization = “Authorization: Bearer “.$token; curl_setopt($ch, CURLOPT_HTTPHEADER, array(‘Content-Type: application/json’ , $authorization )); curl_setopt($ch, CURLOPT_HTTPGET, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $result = curl_exec($ch); curl_close($ch); // Close the…Continue reading

Move WPCode Status Column

add_filter( ‘wpcode_code_snippets_table_columns’, function ( $columns ) { if ( isset( $columns[‘status’] ) ) { $status = $columns[‘status’]; unset( $columns[‘status’] ); $columns = array_slice( $columns, 0, 1, true ) + array( ‘status’ => $status ) + array_slice( $columns, 1, count( $columns…Continue reading

Open Oxygen Builder Structure Panel

/** * Open the Oxygen Builder struture panel automatically when loaded. */ add_action( ‘oxygen_enqueue_ui_scripts’, function() { if ( defined( ‘SHOW_CT_BUILDER’ ) ) { ?> // Add the event listener to the DOM loaded document.addEventListener( ‘DOMContentLoaded’, () => { setTimeout(function ()…Continue reading

Current Year

function current_year_shortcode() { return date(‘Y’); } add_shortcode(‘year’, ‘current_year_shortcode’);Continue reading

EVIDENCE STUDY POST | Study Data

// Assuming this code is placed within your custom post template file // Get the current post ID $post_id = get_the_ID(); // Get the custom field value for a specific key $publication_year = get_post_meta($post_id, ‘publication_year’, true); // Check if the…Continue reading

RESOURCE POST | Display Files – V2 – With Tracking

//echo FrmFormsController::get_form_shortcode( array( ‘id’ => 9 ) ); $localFiles = array( ‘wpcf-local-file-1’ => ‘wpcf-file-1’, ‘wpcf-local-file-2’ => ‘wpcf-file-2’, ‘wpcf-local-file-3’ => ‘wpcf-file-3’, ‘wpcf-local-file-4’ => ‘wpcf-file-4’, ‘wpcf-local-file-5’ => ‘wpcf-file-5’, ‘wpcf-local-file-6’ => ‘wpcf-file-6’, ‘wpcf-local-file-7’ => ‘wpcf-file-7’, ‘wpcf-local-file-8’ => ‘wpcf-file-8’, ‘wpcf-local-file-9’ => ‘wpcf-file-9’, ‘wpcf-local-file-10’ =>…Continue reading

Display Shortcodes Inside HTML Fields (copy)

/** * Run shortcodes on HTML field content * * @link https://wpforms.com/developers/how-to-display-shortcodes-inside-the-html-field/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_dev_html_field_shortcodes( $field, $field_atts, $form_data ) { if ( ! empty( $field[ ‘code’ ] ) ) { $field[ ‘code’ ]…Continue reading