Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* Adds the child theme setup function to the 'after_setup_theme' hook. */
- add_action( 'after_setup_theme', 'oxygen_child_theme_setup', 11 );
- /**
- * Setup function. All child themes should run their setup within this function. The idea is to add/remove
- * filters and actions after the parent theme has been set up. This function provides you that opportunity.
- *
- * @since 0.1.0
- */
- function oxygen_child_theme_setup() {
- /* Get the theme prefix ("example"). */
- $prefix = hybrid_get_prefix();
- /* Custom action and filter calls go here. */
- add_action( 'widget_init', 'remove_some_widgets' );
- }
- function remove_some_widgets(){
- unregister_sidebar( 'primary' );
- unregister_sidebar( 'secondary' );
- unregister_sidebar( 'subsidiary' );
- unregister_sidebar( 'header');
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement