Create new tab option
-
hello.
I would like create new tab option to create new config meta on activities.
I create new tab, but I cant get saved data.
Could you help me?
/** * Add a "Custom" tab in activity settings * @since 1.3.0 * @param array $tabs * @return array */ function dz_bapap_add_activity_price_tab( $tabs ) { $tabs[] = array( 'label' => esc_html__( 'Custom', 'booking-activities' ), 'id' => 'custom', 'callback' => 'bapap_fill_activity_tab_custom', 'parameters' => array(), 'order' => 150 ); return $tabs; } add_filter( 'bookacti_activity_dialog_tabs', 'dz_bapap_add_activity_price_tab', 101 ); function bapap_fill_activity_tab_custom(){ $fields = array( 'max_adults' => array( 'type' => 'number', 'name' => 'Custom', 'id' => 'max_adults', 'class' => 'max_adults', 'title' => esc_html__( 'Custom', 'booking-activities' ), 'tip' => esc_html__( 'Custom.', 'booking-activities' ) ) ); bookacti_display_fields( $fields ); }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Create new tab option’ is closed to new replies.