HTML versnellen

/** * Pixelsz – Cache-busting voor herhaalbezoeken * – Voegt ?v=TIMESTAMP toe aan media (ook srcset) * – Optioneel: ook aan lokale CSS/JS * – Verwijdert oude ?ver / ?v om dubbele versies te voorkomen */ /** Helper: haal een…Continue reading

Gravity Form Custom Code

/* ————————————————————————- * * Gravity Form Custom Theme /* ————————————————————————- */ add_filter( ‘gform_default_styles’, function( $styles ) { return ‘{“theme”:””,”inputSize”:”lg”,”inputBorderRadius”:”5″,”inputBorderColor”:”#000″,”inputBackgroundColor”:”#fff”,”inputColor”:”#000″,”inputPrimaryColor”:”#000″,”labelFontSize”:”18″,”labelColor”:”#000″,”descriptionFontSize”:”14″,”descriptionColor”:”#000″,”buttonPrimaryBackgroundColor”:”#4B533D”,”buttonPrimaryColor”:”#fff”}’; } );Continue reading

Populate Work Order Assign To Dropdown

/** * Name: frs_populateUserDropdown * Description: Populates the Assign To user dropdown with users from the same group as the current user * * Return: $values structure * **/ add_filter(‘frm_setup_new_fields_vars’, ‘frs_populateUserDropdown’, 20, 2); add_filter(‘frm_setup_edit_fields_vars’, ‘frs_populateUserDropdown’, 20, 2); function frs_populateUserDropdown( $values,…Continue reading

K9 Hole Desktop Template

/* Template Name: K9 Hole Desktop Full */ // Ensure no other header is loaded if this is a full template override // Do NOT call get_header() here if the entire HTML structure is below. ?>Continue reading

Duplicate Post/Page Link (copy)

// Add duplicate button to post/page list of actions. add_filter( ‘post_row_actions’, ‘wpcode_snippet_duplicate_post_link’, 10, 2 ); add_filter( ‘page_row_actions’, ‘wpcode_snippet_duplicate_post_link’, 10, 2 ); // Let’s make sure the function doesn’t already exist. if ( ! function_exists( ‘wpcode_snippet_duplicate_post_link’ ) ) { /** *…Continue reading

ACF Display Frontend (Opt Fields with prefix/suffix)

/** * WLM712: Safe ACF Options getter with prefix/suffix (+ shortcode). * Shortcode: [wlm712_acfopt field=”…” prefix=”…” suffix=”…” esc=”html|attr|url|none”] * Example: [wlm712_acfopt field=”contact_phone_number” prefix=’‘ suffix=’‘] */ if (!defined(‘WLM712_ACFOPT_VER’)) { define(‘WLM712_ACFOPT_VER’, ‘1.0.0’); add_action(‘init’, function () { // Only run if ACF is…Continue reading

Automatische updates naar standaard

/** * Activeer alle automatische updates (globaal), * met correcte visuele weergave en standaard WordPress instellingen. */ if ( ! defined( ‘ABSPATH’ ) ) exit; /** * Hulpfunctie: check of huidige gebruiker een Pixelsz beheerder is */ function pixelsz_is_beheerder() :…Continue reading