Notices::render_permalinks_notice()

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( 'https://evnt.is/tec-tc-permalinks' ),
			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' ) . '">',
			'</a>',
			$notice_link
		);

		return sprintf(
			'<p><strong>%1$s</strong></p><p>%2$s</p>',
			$notice_header,
			$notice_text
		);
	}

Top ↑

Changelog

Changelog
Version Description
5.4.1 Introduced.