remove_action problem when function is within class
-
Hey there,
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,
Boris
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘remove_action problem when function is within class’ is closed to new replies.