/* * PG Search Results — Direct MySQL query on people_groups table * Type: php * Location: frontend_cl * Tags: search, results-page * * Reads the `swps` GET parameter (SearchWP search term), queries the * people_groups table with LIKE across…Continue reading
// migration script (safe version) add_action(‘init’, function() { // 🔒 Only run if explicitly triggered if (!isset($_GET[‘run_license_migration’])) return; // 🔒 Only admins if (!current_user_can(‘administrator’)) { wp_die(‘Not allowed’); } // 🔒 Prevent running twice if (get_option(‘ibw_license_migration_done’)) { echo ‘Migration already completed.’;…Continue reading
/** * Fix: WPForms Prefill by URL takes priority over Geolocation Current Location. * * When “Current Location” is enabled in WPForms > Settings > Geolocation, * the geolocation JS overwrites address fields that were pre-filled via URL * parameters…Continue reading
/** * Hide Venmo and Pay Later buttons from PayPal Commerce field. * Also hides Apple Pay, Google Pay buttons and Pay Later messages. * * @link https://wpforms.com/developers/wpforms_wp_footer_end/ */ function wpf_hide_paypal_commerce_buttons() { ?>Continue reading
/** * PayPal Commerce customizations for form 877: * – Horizontal layout for payment buttons * – Disable card funding source from SDK * – Hide “Powered by PayPal” element * * @link https://wpforms.com/developers/wpforms_wp_footer_end/ */ // Inject CSS for horizontal…Continue reading
add_filter( ‘woocommerce_product_single_add_to_cart_text’, ‘saphie_custom_add_to_cart_text’ ); add_filter( ‘woocommerce_product_add_to_cart_text’, ‘saphie_custom_add_to_cart_text’ ); function saphie_custom_add_to_cart_text() { return ‘ADD TO BAG’; }Continue reading
function allow_additional_mime_types($mime_types) { $mime_types[‘jpeg’] = ‘image/jpeg’; $mime_types[‘svg’] = ‘image/svg+xml’; $mime_types[‘webp’] = ‘image/webp’; $mime_types[‘avif’] = ‘image/avif’; $mime_types[‘ico’] = ‘image/vnd.microsoft.icon’; return $mime_types; } add_filter(‘upload_mimes’, ‘allow_additional_mime_types’);Continue reading
echo “Hello dolly!”;Continue reading
/** * Fluent Forms embed endpoint for Astro * * Test first: * https://connect.carfit-hamburg.de/?ff_embed=1&form_id=11 * * Then test pretty URL: * https://connect.carfit-hamburg.de/ff-embed/?form_id=11 */ add_action(‘init’, function () { add_rewrite_tag(‘%ff_embed%’, ‘([^&]+)’); add_rewrite_rule(‘^ff-embed/?$’, ‘index.php?ff_embed=1’, ‘top’); }); add_filter(‘query_vars’, function ($vars) { $vars[] = ‘ff_embed’;…Continue reading
if ( ! defined( ‘ABSPATH’ ) ) { return; } if ( ! class_exists( ‘WooCommerce’ ) ) { return; } if ( ! function_exists( ‘wcs_get_subscription’ ) ) { return; } function rd_aw_backfill_sub_original_delivery_meta( $workflow ) { if ( ! is_object( $workflow…Continue reading