add_filter( ‘tribe_events_virtual_integrations_provider_is_available’, function( $available, $provider, $event_id ) { // Normalize provider to string $provider_slug = is_string( $provider ) ? $provider : strtolower( get_class( $provider ) ); // List all known Zoom/Webex identifiers used in TEC $blocked_slugs = array( ‘zoom’, ‘zoom_meeting’,…Continue reading
// Exit if accessed directly if (!defined(‘ABSPATH’)) { exit; } // Check if WooCommerce is active if (!in_array(‘woocommerce/woocommerce.php’, apply_filters(‘active_plugins’, get_option(‘active_plugins’)))) { add_action(‘admin_notices’, ‘superwp_wc_not_active_notice’); function superwp_wc_not_active_notice() { ?>Continue reading
// Configuratie function get_parameters_36(): array { return [ “target_page_slug” => “lesrooster-evenemententeam-2025”, “tablepress_table_id” => 36 ]; } /** * Probeer een (Nederlandse) datum-string te parsen naar een DateTime in Europe/Amsterdam. * Retourneert DateTime of false als parsing mislukt. */ function etb_parse_datum_to_datetime($datum)…Continue reading
// Add subtitle meta box to post editor function add_subtitle_meta_box() { add_meta_box( ‘post_subtitle’, ‘Subtitle’, ‘subtitle_meta_box_callback’, ‘post’, ‘normal’, ‘high’ ); } add_action(‘add_meta_boxes’, ‘add_subtitle_meta_box’); // Display the subtitle field function subtitle_meta_box_callback($post) { wp_nonce_field(‘save_subtitle’, ‘subtitle_nonce’); $value = get_post_meta($post->ID, ‘_post_subtitle’, true); echo ‘‘; }…Continue reading
// Add subtitle meta box to post editor function add_subtitle_meta_box() { add_meta_box( ‘post_subtitle’, ‘Subtitle’, ‘subtitle_meta_box_callback’, ‘post’, ‘normal’, ‘high’ ); } add_action(‘add_meta_boxes’, ‘add_subtitle_meta_box’); // Display the subtitle field function subtitle_meta_box_callback($post) { wp_nonce_field(‘save_subtitle’, ‘subtitle_nonce’); $value = get_post_meta($post->ID, ‘_post_subtitle’, true); echo ‘‘; }…Continue reading
function defer_some_scripts($tag, $handle, $src) { $is_hcaptcha_script = str_starts_with( $handle, ‘hcaptcha’ ); $is_callrail_swap_script = str_starts_with( $handle, ‘swapjs’); $should_defer = $is_hcaptcha_script || $is_callrail_swap_script; if ( $should_defer ) { $tag = str_replace(‘>‘, ‘ defer>‘, $tag); } return $tag; } add_filter(‘script_loader_tag’, ‘defer_some_scripts’, 10, 3);Continue reading
/** * Compliance Calendar – Cron Jobs (Overdue Detection) * Checks for overdue compliance items and sends notifications via GHL webhook * * @package BHA_Portal * @subpackage Compliance_Calendar * @version 6.1 * * WPCODE SETTINGS: * – Location: Run Everywhere…Continue reading