Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on May 20th, 2012  |  syntax: None  |  size: 0.85 KB  |  views: 23  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. ?>
clone this paste RAW Paste Data