/** * 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
google-site-verification=-jISe-Oe0cpvoUkE-I-AlGEIAzjdaSC50PUnVdPH7BYContinue reading
/** * 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
// This snippet ONLY runs on DESKTOP devices. // It checks if the user is on a mobile page and sends them to the desktop version. add_action( ‘template_redirect’, function() { // — Define your page pairs — // ‘desktop_page_slug’ =>…Continue reading
add_action(‘wp_footer’, function () { ?>Continue reading
add_filter( ‘product_type_options’, function( $options ) { // remove “Virtual” checkbox if( isset( $options[ ‘virtual’ ] ) ) { unset( $options[ ‘virtual’ ] ); } // remove “Downloadable” checkbox if( isset( $options[ ‘downloadable’ ] ) ) { unset( $options[ ‘downloadable’ ]…Continue reading
if (!defined(‘ABSPATH’)) exit; add_action(‘init’, function () { if (is_admin()) return; $enabled = get_field(‘enable_header_top-bar’, ‘option’) ? ‘1’ : ‘0’; if ($enabled === ‘1’) { $_GET[‘rd_topbar_toggle’] = ‘1’; } else { unset($_GET[‘rd_topbar_toggle’]); } });Continue reading