i have template that include many function file. in footer.php
file wp_footer()
load just a menu. how can find which action ruined wp_footer()
function.
Edit1:
I looking for some way to find where action added for wp_footer if it possible.
footer file code:
</div><!-- end wrapper -->
<!-- END SITE -->
<?php wp_footer(); ?>
</body>
</html>
From our discussion: You need to get the list of all functions, which hooked to wp_footer
action.
You can use this:
add_action('wp', function () {
echo '<pre>';
print_r($GLOBALS['wp_filter']['wp_footer']);
echo '</pre>';
exit;
});
The code will output all functions in the array, which hooked to wp_footer
action.
Code goes to the functions.php
file of active theme/child theme