Auto Generate Virtual Coupon After a Customer Completed an Order

/** * Generate a virtual coupon when order is completed. * * @param int $order_id Order…

WooCommerce to Google Sheets schaahi store

add_action('woocommerce_order_status_completed', 'send_order_to_google_sheets', 10, 1); function send_order_to_google_sheets($order_id) { $order = wc_get_order($order_id); if (!$order) return; $line_items = $order->get_items();…

Custom Field to Vendor Settings Page

/* WC Vendors Pro - My Custom Field */ function store_bank_details( ){ if ( class_exists( 'WCVendors_Pro'…

AI

navdeep dhillon
<10

Remove table from dashboard

if ( ! function_exists( 'wcv_remove_recent_order_table_columns' ) ) { /** * Remove columns from Recent Orders table…

Expand the Edit Abilities

use Elementor\Controls_Manager; use Elementor\Group_Control_Background; function add_background_and_overlay_to_layout_tab($element, $args) { // === NORMAL BACKGROUND === $element->start_controls_section( 'custom_background_layout', […

wpadmin add phone number with address in orders page

add_action( 'manage_shop_order_posts_custom_column' , 'custom_orders_list_column_content', 50, 2 ); function custom_orders_list_column_content( $column, $post_id ) { global $the_order, $post;…

Set the ranges for Calendar View | Display Eventbrite Events

The following code snippet filters the valid ranges for the next/prev keys of the calendar views…

WordPress Content Filter: Removing Tags for Enhanced Display Control

The purpose of this code snippet is to filter out tags and their contents from the…

create_folder_and_upload_file

Creating a folder directly inside the WordPress Media Library through code requires understanding that the WordPress…

1 116 117 118 119 120 233