Tribe__Tickets_Plus__Commerce__WooCommerce__Main::do_metabox_advanced_options( int $post_id, int $ticket_id = null )
Add the extra options in the admin’s new/edit ticket metabox portion that is loaded via ajax Currently, that includes the sku, ecommerce links, and ticket history
Contents
Parameters
- $post_id
-
(int) (Required) id of the event post
- $ticket_id
-
(int) (Optional) (null) id of the ticket
Default value: null
Source
File: src/Tribe/Commerce/WooCommerce/Main.php
public function do_metabox_advanced_options( $post_id, $ticket_id = null ) {
$provider = __CLASS__;
echo '<div id="' . sanitize_html_class( $provider ) . '_advanced" class="tribe-dependent" data-depends="#' . sanitize_html_class( $provider ) . '_radio" data-condition-is-checked>';
if ( ! tribe_is_frontend() ) {
$this->do_metabox_sku_options( $post_id, $ticket_id );
$this->do_metabox_ecommerce_links( $post_id, $ticket_id );
}
/**
* Allows for the insertion of additional content into the ticket edit form - advanced section
*
* @since 4.6
*
* @param int Post ID
* @param string the provider class name
*/
do_action( 'tribe_events_tickets_metabox_edit_ajax_advanced', $post_id, $provider );
echo '</div>';
}
Changelog
| Version | Description |
|---|---|
| 5.6.9 | Removed tribe_is_frontend so the SKU displays when using Community Tickets. |
| 4.6 | Introduced. |