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

Untitled

By: a guest on Oct 10th, 2013  |  syntax: None  |  size: 0.43 KB  |  views: 32  |  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. if ( ! function_exists( 'nevia_child_setup' ) ) :
  3. function nevia_child_setup() {
  4.  
  5.     require( get_stylesheet_directory() . '/inc/shortcodes.php' );
  6.        
  7. }
  8. endif;
  9. add_action( 'after_setup_theme', 'nevia_child_setup' );
  10.  
  11. function shortcode_cleaner() {
  12.     remove_shortcode( 'recent_blog_carousel' );
  13.     add_shortcode( 'recent_blog_carousel', 'pp_recent_blog_carousel_child' );
  14. }
  15. add_action( 'init', 'shortcode_cleaner' );
  16.  
  17. ?>
clone this paste RAW Paste Data