File meta box not updating
-
Hi,
I am using this plugin to add a file input box to the product section in woocommerce but it has stopped working.
If I go to a product, the incorrect file appears in the meta box and if I change this to the correct one, it still doesn’t change.
function download_spec_pdf( $meta_boxes ) {
$prefix = ‘prefix-‘;$meta_boxes[] = array(
‘id’ => ‘download_spec’,
‘title’ => esc_html__( ‘Download Specification PDF’, ‘metabox-online-generator’ ),
‘post_types’ => array( ‘product’ ),
‘context’ => ‘advanced’,
‘priority’ => ‘high’,
‘autosave’ => ‘false’,
‘fields’ => array(
array(
‘id’ => $prefix . ‘pdf_specification’,
‘type’ => ‘file_input’,
‘name’ => esc_html__( ‘File Input’, ‘metabox-online-generator’ ),
),
),
);return $meta_boxes;
}
add_filter( ‘rwmb_meta_boxes’, ‘download_spec_pdf’ );This is the code I am using.
Thanks
- The topic ‘File meta box not updating’ is closed to new replies.