function hide_header_for_planner_pages() { if ( is_page(array(‘planner’, ‘planner-checklist’, ‘planner-budget’, ‘planner-guests’, ‘planner-vendors’, ‘planner-countdown’)) ) { remove_action(‘wp_head’, ‘your_theme_header_function’); // Remove this if needed remove_action(‘storefront_header’, ‘storefront_header_container’); // Example for Storefront theme echo ‘ ‘; } } add_action(‘wp_head’, ‘hide_header_for_planner_pages’);Continue reading
/** * Gravity Forms Field to CPT Mirror * Creates/updates a gf_field post for each form field * Works on: form save, JSON import, manual trigger, and form deletion */ defined( ‘ABSPATH’ ) || exit; // Add a manual test…Continue reading
/** * Registers the “Gravity Form Field Meta” field group on gf_field posts. */ defined( ‘ABSPATH’ ) || exit; add_action( ‘acf/init’, function () { if ( ! function_exists( ‘acf_add_local_field_group’ ) ) { return; } acf_add_local_field_group( [ ‘key’ => ‘group_gf_field_meta’, ‘title’…Continue reading
/** * Plugin Name: Gravity Form Field CPT * Description: Registers post-type `gf_field` so each Gravity Forms field can be mirrored as a post. * Author: Next Step Consulting * Version: 1.0 */ defined( ‘ABSPATH’ ) || exit; add_action( ‘init’,…Continue reading
// Author: Sumaiya, Clickup Doc:https://app.clickup.com/36636088/v/dc/12y1dr-22535/12y1dr-25415 /** * Render Dynamic Search Widget * * This function creates a WordPress shortcode to display a dynamic search widget. [dynamic_search_widget] * The widget allows users to search for companies and employees in the database.…Continue reading
// bei api.js?render=”” den Website-Key eingeben function conditionally_load_recaptcha() { if (is_singular() && has_shortcode(get_post()->post_content, ‘gravityform’)) { // Beispiel: Nur wenn Formular im Inhalt echo ‘‘; } } add_action(‘wp_head’, ‘conditionally_load_recaptcha’);Continue reading
/** * Gravity Wiz // Gravity Forms // Better Pre-submission Confirmation * https://gravitywiz.com/better-pre-submission-confirmation/ * * Add pre-submission confirmation to your forms so users can confirm the information they’ve entered is correct. */ if (!class_exists(‘GWPreviewConfirmation’)) { error_log(‘[GWPreviewConfirmation] Not defined. Initializing’); class…Continue reading
add_action( ‘wp_print_scripts’, ‘deregister_javascript_56285268’, 99 ); function deregister_javascript_56285268() { // wp_deregister_script( ‘jquery-migrate’ ); // wp_deregister_script( ‘djacc-script’ ); wp_deregister_style( ‘global-styles’ ); } add_action( ‘wp_enqueue_scripts’, function() { wp_dequeue_style( ‘classic-theme-styles’ ); wp_dequeue_style( ‘global-styles’ ); wp_dequeue_style( ‘wpforms-punycode’ ); });Continue reading
add_action( ‘plugins_loaded’, function(){ remove_filter(‘attachment_fields_to_edit’, array(‘Fusion_Images’, ‘add_image_meta_fields’), 10); remove_filter(‘attachment_fields_to_edit’, array(‘Avada_Images’, ‘add_image_meta_fields’), 10); }, 99); function remove_masonry($fields) { unset($fields[‘fusion_masonry_element_layout’]); return $fields; } add_filter(‘attachment_fields_to_edit’, ‘remove_masonry’, 99);Continue reading
// Author: Sumaiya , Clickup Doc: https://app.clickup.com/36636088/v/dc/12y1dr-22535/12y1dr-25395 /** * Employee Dropdown Autofill * * This code snippet dynamically populates a dropdown with employees from a specified company * and autofills employee details into Fluent form fields based on URL parameters.…Continue reading