'Video Setting', 'target' => 'maanstore_video_setting', ); return $product_data_tabs; } /** * Define fields for video setting */ add_action( 'woocommerce_product_data_panels', 'maanstore_video_settings_custom_product_data_fields' ); function maanstore_video_settings_custom_product_data_fields() { global $woocommerce, $post; ?>
'_maanstore_video_url', 'label' => 'Video URL', 'description' => 'Enter the URL for the video you want to show in videos list in the app. Support mp4 url.', 'default' => '', 'desc_tip' => true, 'data_type' => 'url', 'value' => get_post_meta( get_the_ID(), '_maanstore_video_url', true ) ) ); ?>

OR Choose Video

'_maanstore_video_title', 'label' => 'Video Title', 'description' => 'Please enter the title video', 'default' => '', 'desc_tip' => true, 'value' => get_post_meta( get_the_ID(), '_maanstore_video_title', true ) ) ); woocommerce_wp_textarea_input( array( 'id' => '_maanstore_video_description', 'label' => 'Video Description', 'description' => 'Please enter the description video', 'default' => '', 'desc_tip' => true, 'value' => get_post_meta( get_the_ID(), '_maanstore_video_description', true ) ) ); ?>