// 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
/** * Gravity Wiz // Gravity Forms // Format Date Merge Tags * https://gravitywiz.com/gravity-forms-date-merge-tags/ * * Adds merge tag modifiers for formatting date merge tags using PHP Date Formats. * * Plugin Name: Gravity Forms — Format Date Merge Tags…Continue reading