wp_footer content appearing in admin area
That’s because you’re not using add_action correctly, what you’ve written is functionally the same as this: function xyz_footer_print() { echo ‘footer script here’; } $value = xyz_footer_print(); add_action( ‘wp_footer’, $value ); xyz_footer_print() immediately runs the function and returns nothing. As a result your add_action call says that on the wp_footer even, do nothing. So you … Read more