/** * 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
if ( ! defined( ‘ABSPATH’ ) ) { return; } if ( ! function_exists( ‘rd_aw_wds_get_config’ ) ) { function rd_aw_wds_get_config() { $config = array( ‘cutoff_weekday_iso’ => 4, ‘cutoff_hour’ => 22, ‘cutoff_minute’ => 0, ‘delivery_weekdays_iso’ => array( 7, 1, 2, 3…Continue reading
function rd_watch_selected_wpf_meta_fields( $fields ) { $fields[] = ‘example_user_meta_name_1’; // Add real user meta field name/key $fields[] = ‘example_user_meta_name_1’; // Add real user meta field name/key $fields[] = ‘example_user_meta_name_1’; // Add real user meta field name/key, add more rows as required…Continue reading