this keeps driving me crazy. How come I can do this:
add_action('wp_head', array( 'class_name', 'function_name' ) );
but not this:
remove_action('wp_head', array( 'class_name', 'function_name' ) );
Since this doesn’t work (at least for me 🙂 what would I have to do then to remove an action that has been added through a class?
Cheers for any help,
- The topic ‘remove_action problem when function is within class’ is closed to new replies.