• Previously i was using

    add_action( 'admin_init', 'YOUR_PREFIX_register_taxonomy_meta_boxes' );

    to add meta boxes to the WooCommerce Category Page, but with the update it looks like the image upload doesn’t work anymore:

    array(
    				'name' => 'File Assets',
    				'id'   => 'file_assets',
    				'type' => 'file',
    			),

    So i’m trying to see if anyone has any direction on how to use the updated code to add it to product category.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Anh Tran

    (@rilwis)

    Hi, you should change your code to:

    add_filter( 'rwmb_meta_boxes', 'YOUR_PREFIX_register_taxonomy_meta_boxes' );
    
    function YOUR_PREFIX_register_taxonomy_meta_boxes( $meta_boxes ) {
        $meta_boxes[] = ...
    
        return $meta_boxes;
    }

    For more info, please read this documentation.

    Thread Starter chimmytime

    (@chimmytime)

    Thanks that seemed to work, but my previously linked information doesn’t appear to be there anymore.

    Was there an update to how the data is pulled from the Database?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WooCommerce Category Meta Box’ is closed to new replies.