Type: php
ph brinquedos
Product Details ACF V3.5
/** * Productdetails (V=3.5) uit ACF tonen via [dv_productdetails]. * Geschikt voor WooCommerce-productpagina’s en Elementor. */ if ( ! function_exists( ‘dv_productdetails_row’ ) ) { function dv_productdetails_row( $icon, $label, $field, $product_id ) { if ( ! function_exists( ‘get_field’ ) ) {…Continue reading
ACF is_kleding – duidelijke Nee-schakelaar V1.0
/** * ACF is_kleding V=1.0– duidelijkere Nee-schakelaar. * Alleen opmaak in het WordPress-beheer. */ add_action( ‘acf/input/admin_head’, function() { ?>Continue reading
Product‑schema met ACF‑velden schema org V2.0
// REMARK V 2.0 27-07-2026: Samengevoegd Brand + Product schema. ?>Continue reading
GForms – Signature – Update Signature Merge Tag Value to Display HTML img using ‘:img’
add_filter( ‘gform_merge_tag_filter’, ‘signature_to_img’, 10, 6); function signature_to_img( $value, $merge_tag, $modifier, $field, $raw_value, $format ) { if ( $field->type == ‘signature’ && $modifier == ‘img’ ) { return ‘‘; } return $value; }Continue reading
GFlow – Notification Step – Attach Uploaded Files to GFlow Notification Steps – Specific Form Only
add_filter( ‘gravityflow_notification’, ‘sh_gravityflow_notification’, 10, 4 ); function sh_gravityflow_notification( $notification, $form, $entry, $step ) { //ONLY ATTACH ON SPECIFIC FORMS, NOT ALL if ( $form[‘id’] != 34 ) { //34 = Client Email Notice return $notification; } $log = ‘sh_notification_attachments() –…Continue reading
GForms – Add {created_by:roles} merge tag to return comma separated list of roles
/* Source: https://docs.gravityforms.com/gform_merge_tag_data/ */ add_filter( ‘gform_merge_tag_data’, function ( $data, $text, $form, $entry ) { $data[‘created_by’] = array(); if ( ! empty( $entry[‘created_by’] ) ) { $user = new WP_User( $entry[‘created_by’] ); $data[‘created_by’] = get_object_vars( $user->data ); $data[‘created_by’][‘first_name’] = $user->get( ‘first_name’…Continue reading
GFlow – Workflow Notification – Replace Custom Send to Merge Tags {send_to[first_name,roles,etc.]}
//Works for any Step’s Workflow Notifications // Custom Merge Tags to retrieve info about the user with the corresponding ‘to’ // email in the GFlow Notification // A GFlow notification’s ‘to’ contains the list of emails the notification will be…Continue reading
GForms – Add noclasshidden modifier to {all_fields} merge tag
add_filter( ‘gform_merge_tag_filter’, ‘filter_all_fields_hide’, 10, 4 ); function filter_all_fields_hide ( $value, $merge_tag, $modifier, $field ) { if ( $merge_tag == ‘all_fields’ && str_contains( $modifier, ‘noclasshidden’ ) && str_contains( $field->cssClass, ‘all-fields-hide’ ) ) { return false; } return $value; }Continue reading