Settings::maybe_add_troubleshooting()
Maybe add troubleshooting page for Event Tickets.
Source
File: src/Tribe/Admin/Settings.php
public function maybe_add_troubleshooting() {
$admin_pages = tribe( 'admin.pages' );
if ( ! tribe( 'settings' )->should_setup_pages() ) {
return;
}
$troubleshooting = tribe( Troubleshooting::class );
$admin_pages->register_page(
[
'id' => 'tec-tickets-troubleshooting',
'parent' => 'tec-tickets',
'title' => esc_html__( 'Troubleshooting', 'event-tickets' ),
'path' => 'tec-tickets-troubleshooting',
'capability' => $troubleshooting->get_required_capability(),
'callback' => [
$troubleshooting,
'do_menu_page',
],
]
);
}
Changelog
| Version | Description |
|---|---|
| 5.4.0 | Introduced. |