hooks not working on live server

This works on my development server but does nothing on the live server:

add_action('get_footer', function() { echo 'Test'; });

This is not specific to the get_footer hook – any hook will do! I have no clue where to start looking, I’ve searched but haven’t found anything. Help would be much appreciated.

Leave a Comment