So I guess it would be nice to know if the function is being executed at all – I usually do this by dropping something fairly identifiable into the first line of the function, like echo "ilovetroubleshooting";
, then I watch for that to appear on the page load when the filter should have executed.
Do you think that the add_filter()
definition is ok in page.php
? I wonder if it should go in functions.php
instead…