product_type_options get saved value [closed]

I have modified your code please check the below code. function add_octopus_child_option( $product_type_options ) { $product_type_options[‘childocto’] = array( ‘id’ => ‘_childocto’, ‘wrapper_class’ => ‘show_if_octopus’, ‘label’ => __( ‘Gekoppeld’, ‘woocommerce’ ), ‘description’ => __( ‘Vink dit aan indien dit niet het hoofdproduct is.’, ‘woocommerce’ ), ‘default’ => ‘no’ ); return $product_type_options; } add_filter( ‘product_type_options’, ‘add_octopus_child_option’ ); … Read more

Hook to execute after deleting a Custom Taxonomy

Changes argument numbers 2 to 4 as below add_action( ‘delete_product_category’, array ( $this , ‘term_delete_success’ ), 10, 4); Here is the reference function. You may find detail on wordpress codex More info do_action( “delete_{$taxonomy}”, int $term, int $tt_id, mixed $deleted_term, array $object_ids )