WordPress – not including header/footer in AJAX request

In ProcessWire, when making an AJAX request, you can set this in the a template file:

<?php if (!$config->ajax) include('./head.inc'); ?>

Is there an equivalent for WordPress?

<?php get_header(); ?>

Read more here: WordPress – not including header/footer in AJAX request

Leave a Reply

Your email address will not be published. Required fields are marked *