Notices::should_render_permalinks_notice()
Display a notice when Tickets Commerce is enabled, and the site is not using pretty permalinks.
Return
(bool) Whether or not to render the notice.
Source
File: src/Tickets/Commerce/Admin/Notices.php
public function should_render_permalinks_notice() { // If the site is using pretty permalinks, bail. if ( '' !== get_option( 'permalink_structure' ) ) { return false; } // If we're not on our own settings page, bail. if ( tribe_get_request_var( 'page' ) !== \Tribe\Tickets\Admin\Settings::$settings_page_id ) { return false; } // If Tickets Commerce is not enabled, bail. if ( ! tec_tickets_commerce_is_enabled() ) { return false; } return true; }
Changelog
Version | Description |
---|---|
5.4.1 | Introduced. |