Intercept admin_init to render the page early.
Description
This bypasses the default WordPress admin template.
Source
function wp_options_connectors_intercept_render() {
// phpcs:ignore WordPress.Security.NonceVerification.Recommended
if ( isset( $_GET['page'] ) && 'options-connectors' === $_GET['page'] ) {
wp_options_connectors_render_page();
exit;
}
}
User Contributed Notes
You must log in before being able to contribute a note or feedback.