// Utilities ———————————————————— function wishlist_is_allowed_path() { $allowed_paths = [‘/rentals’, ‘/collections/’]; $request_uri = $_SERVER[‘REQUEST_URI’] ?? ”; foreach ($allowed_paths as $path) { if (strpos($request_uri, $path) !== false) { return true; } } return false; } // ———————————————————————- // Shortcode: [wishlist_count] —————————————— function…Continue reading
// Utility ———————————————————— function wishlist_is_allowed_path() { $allowed_paths = [‘/rentals’, ‘/collections/’]; $request_uri = $_SERVER[‘REQUEST_URI’] ?? ”; foreach ($allowed_paths as $path) { if (strpos($request_uri, $path) !== false) { return true; } } return false; } // ———————————————————————- // Shortcode: [wishlist_count] —————————————— function…Continue reading
function aioseo_remove_trailing_slash_from_homepage( $entry, $post_id, $post_type, $entry_type ) { // Get the homepage ID $homepage_id = aioseo()->helpers->getHomePageId(); // Check if this is the homepage if ( $homepage_id && $post_id === $homepage_id ) { // Remove trailing slash from the URL if…Continue reading
add_filter( ‘aioseo_redirects_log_skip’, ‘redirects_log_skip’, 10, 2 ); function redirects_log_skip( $skip, $data ) { // Define a list of unwanted URLs $ignoreUrls = [ ‘/config.json’, ‘/home’, ‘/main’, ‘/server-status’, ‘/private’ ]; // Skip logging these URLs if they result in a 404 error…Continue reading
/** * PXLSZ – Toegankelijkheidsverbeteraar (A11y Booster) * Zet focus-UI, skiplinks, ARIA voor menu’s, toetsenbord-bediening, * reduced motion, link- en formulierverbeteringen, en utility-klassen. */ if (!defined(‘ABSPATH’)) exit; /* ========================================================= * 1) BASIS STYLES + UTILITY KLASSEN + REDUCED MOTION *…Continue reading
/** * Vervangt de Font Awesome plugin door een eenvoudige enqueue van de CDN-versie. */ add_action( ‘wp_enqueue_scripts’, function() { // Laad de nieuwste versie van Font Awesome 6 wp_enqueue_style( ‘font-awesome’, ‘https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css’, array(), ‘6.5.2’ ); });Continue reading
/** * Forceer Classic Widgets in plaats van de Block Widgets editor. * Zelfde effect als de “Classic Widgets” plugin. */ // Zet de block-widget editor uit (WordPress 5.8+) add_filter( ‘use_widgets_block_editor’, ‘__return_false’ );Continue reading
/** * Forceer Classic Widgets in plaats van de Block Widgets editor. * Zelfde effect als de “Classic Widgets” plugin. */ // Zet de block-widget editor uit (WordPress 5.8+) add_filter( ‘use_widgets_block_editor’, ‘__return_false’ );Continue reading
/** * Forceer Classic Editor in plaats van Gutenberg (Block Editor). */ // Zet de block-editor helemaal uit add_filter( ‘use_block_editor_for_post’, ‘__return_false’, 10 ); // Eventueel ook voor pagina’s add_filter( ‘use_block_editor_for_page’, ‘__return_false’, 10 ); // Schakel de block-editor voor widgets uit…Continue reading
add_action(‘wp_footer’, ‘pixelsz_tijdelijke_banner_met_24u_sluiten’); function pixelsz_tijdelijke_banner_met_24u_sluiten() { // Start- en einddatum instellen $startdatum = ‘2025-09-16’; $einddatum = ‘2026-09-01’; $vandaag = current_time(‘Y-m-d’); if ($vandaag >= $startdatum && $vandaag × Clientenstop! Vanwege een geplande sabatical van 1 december 2025 tot en 1 september 2026,…Continue reading