Viewing 1 replies (of 1 total)
  • Plugin Author WebToffee

    (@webtoffee)

    Hi @jslom,

    We can help you out with a code snippet to unset this meta. Copy below code snippet to your active theme’s functions.php.

    add_filter('wf_pklist_modify_meta_data', 'wf_modify_meta_data', 10, 2);
    
    function wf_modify_meta_data($meta) {
    
        // Below are the keys for bundled products - Change the array keys according to the needs
    
        $keys = array('_wc_cog_item_cost', '_wc_cog_item_total_cost', '_ywpo_item_preorder', '_ywpo_item_for_sale_date');
    
        foreach ($meta as $id => $value) {
            if (in_array($id, $keys)) {
                if (isset($meta[$id])) {
                    unset($meta[$id]);
                }
            }
        }
    
        return $meta;
    }

    You can also add more meta keys to the array if you need to unset them.

Viewing 1 replies (of 1 total)
  • The topic ‘Hidden Meta Displaying’ is closed to new replies.