Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter Krzysztof

    (@koncak)

    Solution is:

    <?php
    /*
    Plugin Name: Divide Meta Fields with Comma (Really Simple CSV Importer add-on)
    */
    
    add_filter('really_simple_csv_importer_save_meta', function($meta, $post, $is_update) {
        
        // serialize metadata
        $str_array = "";
        if (isset($meta['_phive_booking_availability_rules'])) $str_array = $meta['_phive_booking_availability_rules'];
        $meta_array = unserialize($str_array);
        $meta['_phive_booking_availability_rules'] = $meta_array;
        
        return $meta;
        
    }, 10, 3);
    • This reply was modified 4 years, 7 months ago by Krzysztof.
Viewing 1 replies (of 1 total)