/** * 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
add_filter( ‘charitable_default_donation_fields’, function( $fields ) { if ( isset( $fields[‘title’] ) ) { // Remove from the donation form entirely $fields[‘title’][‘donation_form’] = false; } return $fields; }, 20 );Continue reading