Hi,
I have created a blade template which gets rendered under the title input when editing a post in the wp-admin area. This loads fine, however it also loads all the front-end scripts and styles, which I do not want.
add_action( 'edit_form_after_title', 'render_poll_admin' );
function render_poll_admin()
{
echo '<h2>Poll results and data!</h2>';
$output_array = array(
'post_id' => 42
);
echo App\template('poll.layout-admin', $output_array);
}
Is there a way to load a blade template without also enqueuing all the front end assets?