I am trying to load content before the end body tag on admin pages that have a TinyMCE editor on them. To do this I am trying to leverage two action hooks 'before_wp_tiny_mce' and 'admin_footer' but it does not seem to be working as I expected. The following is a simplified version of my code:
add_action( 'before_wp_tiny_mce', 'before_wp_tiny_mce_action' );
function before_wp_tiny_mce_action() {
add_action( 'admin_footer', 'admin_footer_action' );
}
function admin_footer_action() {
echo "<p>I am in the footer of an admin page with a TinyMCE editor.</p>";
}
Why doesn't this work?
echo 'xxx'; die;
in each to make sure they are getting called properly. May have a typo in the something? – Eric Holmes Feb 27 '14 at 21:10