Run child function after parent theme function if parent using after_setup_theme
-
Hi!
I need to modify one theme which isn’t built very smart.
I need to override (remove) this action using child theme
add_action( 'after_setup_theme' , 'setup_theme' );
I tried to do following, but it doesn’t work:
add_action('init','remove_setup_theme'); function remove_setup_theme(){ $status = remove_action( 'after_setup_theme' , 'setup_theme' ); if ($status) { echo(' setup_theme removed'); } else wp_die(' setup_theme not removed'); }
And it always dies ??
Please help!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Run child function after parent theme function if parent using after_setup_theme’ is closed to new replies.