Home / Admin / Move “Ships From” under the Product Meta, in the single product page template
Duplicate Snippet

Embed Snippet on Your Site

Move “Ships From” under the Product Meta, in the single product page template

Move "Ships From" under the Product Meta, in the single product page template by using 'product_ships_from' filter

Code Preview
php
<?php
add_action(
    'init', function () {
        global $wcvendors_pro;
        $wcv_pro_vendor_controller = $wcvendors_pro->wcvendors_pro_vendor_controller;
        remove_action('woocommerce_product_meta_start', array( $wcv_pro_vendor_controller, 'product_ships_from' ), 9);
        add_action('woocommerce_product_meta_end', array( $wcv_pro_vendor_controller, 'product_ships_from' ), 9);
    },
    100
);

Comments

Add a Comment