Advertisement
Guest User

Untitled

a guest
May 20th, 2012
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. <?php
  2.  
  3. /* Adds the child theme setup function to the 'after_setup_theme' hook. */
  4. add_action( 'after_setup_theme', 'oxygen_child_theme_setup', 11 );
  5.  
  6. /**
  7. * Setup function. All child themes should run their setup within this function. The idea is to add/remove
  8. * filters and actions after the parent theme has been set up. This function provides you that opportunity.
  9. *
  10. * @since 0.1.0
  11. */
  12. function oxygen_child_theme_setup() {
  13.  
  14. /* Get the theme prefix ("example"). */
  15. $prefix = hybrid_get_prefix();
  16.  
  17. /* Custom action and filter calls go here. */
  18. add_action( 'widget_init', 'remove_some_widgets' );
  19.  
  20. }
  21.  
  22. function remove_some_widgets(){
  23. unregister_sidebar( 'primary' );
  24. unregister_sidebar( 'secondary' );
  25. unregister_sidebar( 'subsidiary' );
  26. unregister_sidebar( 'header');
  27. }
  28.  
  29. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement