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

Untitled Snippet

document.addEventListener(“DOMContentLoaded”, () => { const canvas = document.getElementById(“canvas”); const ctx = canvas.getContext(“2d”); const expressionInput = document.getElementById(“expressionInput”); const drawButton = document.getElementById(“drawButton”); const resetButton = document.getElementById(“resetButton”); const saveButton = document.getElementById(“saveButton”); const colorPicker = document.getElementById(“colorPicker”); const gridToggle = document.getElementById(“gridToggle”); let scaleX = 25;…Continue reading

Untitled Snippet

body { font-family: Arial, sans-serif; text-align: center; margin: 20px; background-color: #f9f9f9; color: #333; } h1 { color: #4a90e2; } #controls { display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 20px; } #controls input, #controls button { padding: 10px; font-size:…Continue reading

Untitled Snippet

Đồ Thị Hàm Số Đồ Thị Hàm Số Thêm Đồ Thị Reset Màu Đồ Thị: Hiển Thị Lưới: Lưu Kết Quả Hướng Dẫn Nhập Phép Toán Ký Hiệu Mũ ** Nhân * Chia / Cộng + Trừ – Sin sin(x)…Continue reading

Sending Multiple File Uploads to Google Drive through Zapier

/** * Send multiple files to Google Drive with Zapier addon * * @link https://wpforms.com/developers/how-to-send-multiple-files-to-google-drive-with-zapier/ */ function wpf_dev_add_zapier_file_upload_filter($data, $entry_id, $form_data) { $fields = wpforms_get_form_fields( $form_data ); foreach ( $fields as $field_id => $field ) { if ( $field[‘type’] === ‘file-upload’…Continue reading

Setting a Default Featured Image for Post Submissions

/** * Assign default featured image * * @link https://wpforms.com/developers/how-to-set-a-default-featured-image-for-post-submissions/ */ function wpf_dev_post_submissions_process( $post_id, $fields, $form_data ) { // If form ID is 463, run code below if ( 463 !== absint( $form_data[ ‘id’ ] ) ) { return; }…Continue reading