Bulk Order Cancelled In WooCommerce
add_filter( ‘bulk_actions-edit-shop_order’, ‘wdo_register_bulk_action’ ); // edit-shop_order is the screen ID of the orders page function wdo_register_bulk_action( $bulk_actions ) { $bulk_actions[‘mark_cancel_order’] = ‘Mark Order Cancel’; // Mark Cancel Order return $bulk_actions; } add_action( ‘admin_action_mark_cancel_order’, ‘wdo_bulk_process_custom_status’ ); // admin_action_{action name} function wdo_bulk_process_custom_status()…
Register New Taxonomy or Assign existing Taxonomy to Custom Post Type
// Register New taxonomy for existing CUSTOM POST TYPE add_action(‘init’, ‘wdo_tag_for_cpt_post_type’); function wdo_tag_for_cpt_post_type(){ //register taxonomy for custom post type register_taxonomy( ‘your_taxomony_name’, //taxonomy ‘your_post_type’, //post-type for which registering Taxomony array( ‘hierarchical’ => false, ‘label’ => __( ‘Tags’,’taxonomy general name’), ‘singular_name’ =>…
Disable WooCommerce Payment Gateways Based On Cart Amount
If you want to disable payment gateway based on Cart total and show only specific Payment method if cart amount higher than specific amount than using country in WooCommerce filter woocommerce_available_payment_gateways you able to easily apply in your WooCommerce wordpress…
You must be logged in to post a comment.