Notices::render_checkout_notice()
Gets the HTML for the notice that is shown when checkout setting is not set.
Return
(string) Notice HTML.
Source
File: src/Tickets/Commerce/Admin/Notices.php
public function render_checkout_notice() { $notice_link = sprintf( '<a href="%1$s" target="_blank" rel="noopener noreferrer">%2$s</a>', esc_url( 'https://evnt.is/1axv' ), esc_html__( 'Learn More', 'event-tickets' ) ); $notice_header = esc_html__( 'Set up your checkout page', 'event-tickets' ); $notice_text = sprintf( // translators: %1$s: Link to knowledgebase article. esc_html__( 'In order to start selling with Tickets Commerce, you\'ll need to set up your checkout page. Please configure the setting on Settings > Payments and confirm that the page you have selected has the proper shortcode. %1$s', 'event-tickets' ), $notice_link ); return sprintf( '<p><strong>%1$s</strong></p><p>%2$s</p>', $notice_header, $notice_text ); }
Changelog
Version | Description |
---|---|
5.2.0 | Introduced. |