Global Brand Footer Override

/** * LexiPress: Global Brand Footer Override for Belletrist */ if ( ! defined( ‘ABSPATH’ ) ) { exit; } // 1. Hide Belletrist’s native footer containers via inline CSS to prevent layout shift add_action(‘wp_head’, function() { echo ‘ ‘;…Continue reading

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

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