Tribe__Tickets_Plus__Commerce__WooCommerce__Main::do_metabox_ecommerce_links( $post_id, int $ticket_id = null )
Add the extra options in the admin’s new/edit ticket metabox
Contents
Parameters
- $post_id
-
(Required) int id of the event post
- $ticket_id
-
(int) (Optional) (null) id of the ticket
Default value: null
Return
(void)
Source
File: src/Tribe/Commerce/WooCommerce/Main.php
public function do_metabox_ecommerce_links( $post_id, $ticket_id = null ) {
$is_correct_provider = tribe( 'tickets.handler' )->is_correct_provider( $post_id, $this );
if ( empty( $ticket_id ) ) {
$ticket_id = tribe_get_request_var( 'ticket_id' );
}
$ticket = $this->get_ticket( $post_id, $ticket_id );
$is_correct_provider = tribe( 'tickets.handler' )->is_correct_provider( $ticket_id, $this );
// Bail when we are not dealing with this provider
if ( ! $is_correct_provider ) {
return;
}
include $this->plugin_path . 'src/admin-views/woocommerce-metabox-ecommerce.php';
}
Changelog
| Version | Description |
|---|---|
| 4.6 | Introduced. |