wp_font_library_intercept_render()

In this article

Intercept admin_init to render the page early.

Description

This bypasses the default WordPress admin template.

Source

function wp_font_library_intercept_render() {
	// phpcs:ignore WordPress.Security.NonceVerification.Recommended
	if ( isset( $_GET['page'] ) && 'font-library' === $_GET['page'] ) {
		wp_font_library_render_page();
		exit;
	}
}

User Contributed Notes

You must log in before being able to contribute a note or feedback.