// Remove wrap from images in ACF editor function gc_remove_p_tags_around_images($content) { $contentWithFixedPTags = preg_replace_callback(‘/ ((?:.(?!p>))*?)(]*>)?\s*(]+>)()?(.*?)/is’, function($matches) { // image and (optional) link: $image = $matches[2] . $matches[3] . $matches[4]; // content before and after image. wrap in unless it’s empty…Continue reading
// 1. FORCE THE THEME TO LOAD THE MODAL MARKUP ON EVERY PAGE add_action(‘wp_footer’, ‘force_madara_auth_modals_globally’, 1); function force_madara_auth_modals_globally() { // If the modal isn’t already printed by the theme, manually echo Madara’s native template blocks if ( !wp_script_is(‘bootstrap’, ‘enqueued’) &&…Continue reading
/* * Snippet #110: Religions of the World – Interactive Charts * Replaces PowerBI iframes (snippets #59 / #72) with Chart.js charts * sourced directly from the people_groups MySQL table (RlgnBs column). * * Shortcode: [pg_religion_charts] * Place on /religions-of-the-world/…Continue reading
add_shortcode(‘cta_banner_desktop’, function() { ob_start(); ?> Only – apply before 31 July to avoid a £100 late application fee APPLY NOWContinue reading
add_shortcode(‘cta_banner_mobile’, function() { ob_start(); ?> Only – apply before 31 July to avoid a £100 late application feeContinue reading
add_filter( ‘the_password_form’, ‘custom_password_form_text’, 20 ); function custom_password_form_text( $output ) { // Replace the default WordPress text with your custom message $old_text = ‘This content is password protected. To view it please enter your password below:’; $new_text = ‘This content is…Continue reading
add_filter( ‘lpfw_filter_get_settings_sections’, function( $response ) { $data = $response->get_data(); // Build options dynamically from all registered WooCommerce order statuses $status_options = array(); foreach ( wc_get_order_statuses() as $slug => $label ) { $status_options[] = array( ‘key’ => str_replace( ‘wc-‘, ”, $slug…Continue reading
if ( ! function_exists( ‘yith_wcaf_gateway_bacs_bacs_name_label’ ) ) { function yith_wcaf_gateway_bacs_bacs_name_label( $label ) { $label = ‘Account Name’; return $label; } add_filter( ‘yith_wcaf_gateway_bacs_bacs_name_label’, ‘yith_wcaf_gateway_bacs_bacs_name_label’, 10, 1 ); add_filter( ‘yith_wcaf_account_name_label’, ‘yith_wcaf_gateway_bacs_bacs_name_label’, 10, 1 ); } if ( ! function_exists( ‘yith_wcaf_gateway_bacs_bacs_iban_label’ ) )…Continue reading
/* * Snippet #68 (ID 36073): Print pg profile page generate shortcodes for ACFs * Type: php * Status: publish * Location: 1 * Modified: 2025-09-18 02:06:59 * @modified-by: robbyambler-imb * * Reads people group fields from the people_groups MySQL…Continue reading
/* * Snippet #109: Print Prayer Card – Mobile Responsive CSS * Type: php * Status: publish * Location: 1 (frontend) * WPCode Rules: page ID 36069 only (set in WPCode admin) * * Fixes oversized PRINT/CUT/PRAY instruction icons on…Continue reading