to add WooCommerce WhatsApp Product Enquiry. NO API Used.

/* Plugin Name: SuperWp WhatsApp Product Enquiry Description: Adds a WhatsApp enquiry button to WooCommerce product pages with customizable options, custom messages, and phone number input. Version: 1.0.3 Author: Thiarara SuperWP */ // Add WooCommerce Submenu for WhatsApp Enquiry Settings…Continue reading

to add WordPress WooCommerce WhatsApp checkout

// 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

Show WooCommerce Cart and Checkout on the Same page Free No Plugin

// 1. Add Woocommerce cart page on the checkout page add_action( ‘woocommerce_before_checkout_form’, ‘add_cart_on_checkout’, 5 ); function add_cart_on_checkout() { if ( is_wc_endpoint_url( ‘order-received’ ) ) return; echo do_shortcode(”); // Woocommerce cart page shortcode } // 2. Redirect cart page to checkout…Continue reading

How to Allow WordPress WooCommerce Direct Order to WhatsApp Free.

// Add custom checkbox and WhatsApp number fields to product edit page add_action(‘woocommerce_product_options_general_product_data’, ‘add_whatsapp_order_fields’); function add_whatsapp_order_fields() { woocommerce_wp_checkbox(array( ‘id’ => ‘allow_whatsapp_order’, ‘label’ => __(‘Allow WhatsApp Order’, ‘text-domain’), ‘description’ => __(‘Check this box to enable WhatsApp ordering for this product.’, ‘text-domain’),…Continue reading

Allow SVG Files Upload

/** * Allow SVG uploads for administrator users. * * @param array $upload_mimes Allowed mime types. * * @return mixed */ add_filter( ‘upload_mimes’, function ( $upload_mimes ) { // By default, only administrator users are allowed to add SVGs. //…Continue reading

Enhanced Force Author Plugin

About This Plugin This plugin forces all selected content types to show a specific author, while maintaining the original author information in the database. The original author information is visible in the posts/pages list under the “Original Author” column.Continue reading

MemberPress: Import Dropdown Options for Custom Fields

function mepr_cust_import_options() { if( isset( $_REQUEST[‘import-options’] ) ) { // For this code snippet to work, a custom dropdown field must be created at Dashboard > MemberPress > Settings > Fields tab. $mepr_options = MeprOptions::fetch( true ); $key = ‘mepr_custom_dropdown’;…Continue reading

MemberPress: Set UK Transactions VAT to 0

function mepr_cust_uk_vat( $vat_countries ) { if( isset( $vat_countries ) ) { $gb = $vat_countries[‘GB’]; if ( isset( $gb ) ) { $gb[‘rate’] = 0; $vat_countries[‘GB’] = $gb; } } return $vat_countries; } add_filter( ‘mepr-vat-countries’, ‘mepr_cust_uk_vat’ );Continue reading