WooCommerce::save_wc_product_meta( $post_ID )
Source
File: classes/WooCommerce.php
public function save_wc_product_meta( $post_ID ) { $is_dozent_product = dozent_input_text( '_dozent_product' ); if ( $is_dozent_product === 'on' ) { update_post_meta( $post_ID, '_dozent_product', 'yes' ); } else { delete_post_meta( $post_ID, '_dozent_product' ); } }