Advertisement
Guest User

My NEW functions.php

a guest
Feb 1st, 2012
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4.  
  5. * Graphene functions and definitions
  6.  
  7. *
  8.  
  9. * Sets up the theme and provides some helper functions. Some helper functions
  10.  
  11. * are used in the theme as custom template tags. Others are attached to action and
  12.  
  13. * filter hooks in WordPress to change core functionality.
  14.  
  15. *
  16.  
  17. * The first function, graphene_setup(), sets up the theme by registering support
  18.  
  19. * for various features in WordPress, such as post thumbnails, navigation menus, and the like.
  20.  
  21. *
  22.  
  23. * When using a child theme (see http://codex.wordpress.org/Theme_Development and
  24.  
  25. * http://codex.wordpress.org/Child_Themes), you can override certain functions
  26.  
  27. * (those wrapped in a function_exists() call) by defining them first in your child theme's
  28.  
  29. * functions.php file. The child theme's functions.php file is included before the parent
  30.  
  31. * theme's file, so the child theme functions would be used.
  32.  
  33. *
  34.  
  35. * Functions that are not pluggable (not wrapped in function_exists() ) are instead attached
  36.  
  37. * to a filter or action hook. The hook can be removed by using remove_action() or
  38.  
  39. * remove_filter() and you can attach your own function to the hook.
  40.  
  41. *
  42.  
  43. * We can remove the parent theme's hook only after it is attached, which means we need to
  44.  
  45. * wait until setting up the child theme:
  46.  
  47.  
  48. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement