Changeset 13936
- Timestamp:
- 04/02/2010 04:45:22 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyten/functions.php
r13923 r13936 20 20 * remove_filter() and you can attach your own function to the hook. 21 21 * 22 * In this example, since both hooks are attached using the default priority (10), the first 23 * one attached (which would be the child theme) will run. We can remove the parent theme's 24 * hook only after it is attached, which means we need to wait until setting up the child theme: 22 * We can remove the parent theme's hook only after it is attached, which means we need to 23 * wait until setting up the child theme: 25 24 * 26 25 * <code> 27 26 * add_action( 'after_setup_theme', 'my_child_theme_setup' ); 28 27 * function my_child_theme_setup() { 29 * // We are replacing twentyten_setup() with my_child_theme_setup()30 * remove_action( 'after_setup_theme', 'twentyten_setup' );31 28 * // We are providing our own filter for excerpt_length (or using the unfiltered value) 32 29 * remove_filter( 'excerpt_length', 'twentyten_excerpt_length' );
Note: See TracChangeset
for help on using the changeset viewer.