Hello,
using 3.3. I have a class and in my __construct() method, I have the add_action (shown below). The function I have added is not getting executed, though. This is for a plugin and this is to do some custom stuff in the admin.
class myclass {
function __construct() {
...
add_action('wp_print_footer_scripts', array(&$this, 'FeFiction_OverWrite_Post_Edit_Meta_Boxes'),20);
...
}
function FeFiction_OverWrite_Post_Edit_Meta_Boxes()
{
global $post,$wp,$wpdb;
...
do some stuff, print some stuff
...
}
}