Gets the HTML for the notice that is shown when permalinks are not set.

Return #

(string) Notice HTML.

Top ↑

Source #

File: src/Tickets/Commerce/Admin/Notices.php

	public function render_permalinks_notice() {
		$notice_link = sprintf(
			'<a href="%1$s" target="_blank" rel="noopener noreferrer">%2$s</a>',
			esc_url( '' ),
			esc_html__( 'Learn More', 'event-tickets' )

		$notice_header = esc_html__( 'Set up your permalinks to sell with Tickets Commerce', 'event-tickets' );
		$notice_text   = sprintf(
			// translators: %3$s: Link to knowledgebase article.
			esc_html__( 'In order to start selling with Tickets Commerce, you\'ll need to set up your permalinks setting to an option different than "Plain". Please configure the setting on %1$sSettings > Permalinks%2$s and confirm that you are not using plain permalinks. %3$s', 'event-tickets' ),
			'<a href="' . get_admin_url( null, 'options-permalink.php' ) . '">',

		return sprintf(

Top ↑

Changelog #

Version Description
5.4.1 Introduced.