/** * Allow SVG uploads for administrator users. * * @param array $upload_mimes Allowed mime types. * * @return mixed */ add_filter( ‘upload_mimes’, function ( $upload_mimes ) { // By default, only administrator users are allowed to add SVGs. //…Continue reading
add_filter( ‘wpseo_opengraph_title’, function( $og_title ) { // Gebruik altijd de Yoast SEO-titel als OG-title if ( function_exists( ‘wpseo_replace_vars’ ) ) { $title = wpseo_replace_vars( WPSEO_Meta::get_value( ‘title’ ), get_post() ); if ( ! empty( $title ) ) { return $title; }…Continue reading
add_action( ‘wp_enqueue_scripts’, function() { wp_add_inline_script( ‘jquery’, ‘ jQuery(document).on(“click”, “.uvri-tab-btn”, function() { jQuery(“.uvri-tab-btn”).removeClass(“active”); jQuery(“.uvri-tab-panel”).removeClass(“active”); jQuery(this).addClass(“active”); jQuery(“#” + jQuery(this).data(“tab”)).addClass(“active”); }); ‘ ); } ); function uvri_podcast_episodes_shortcode() { $year_season = array( 2023 => 1, 2024 => 2, 2025 => 3, 2026 => 4,…Continue reading
add_filter( ‘get_the_excerpt’, function( $excerpt ) { remove_filter( ‘the_content’, array( SiteOrigin_Panels::single(), ‘generate_post_content’ ) ); return $excerpt; } ); add_filter( ‘the_content’, function( $content ) { add_filter( ‘the_content’, array( SiteOrigin_Panels::single(), ‘generate_post_content’ ) ); return $content; }, 11 );Continue reading
/* * Snippet #36 (ID 35273): People Group Profile – CSS Class for matching religion to a color * Type: php * Status: publish * Location: 1 * Modified: 2025-07-28 17:52:37 */ function custom_rlgn_font_color_style() { if (is_singular()) { $rlgn =…Continue reading
/** * Snippet Title: PG Profile — Dig Deeper slider outside label fix * Description: Fixes unreadable percentage labels in the UAGB Counter Bars blocks * in the Religion and Language Dig Deeper sections on PG profile pages. * *…Continue reading
/** * Delays the Google Sheets task until Google Drive has finished uploading, * then swaps the local/download URL for the direct Google Drive URL. * * Setup requirements: * – Entry storage ON (Disable storing entry information in WordPress…Continue reading