Make WordPress Core


Ignore:
Timestamp:
04/02/2010 04:45:22 AM (14 years ago)
Author:
nacin
Message:

Update obsolete docs in Twentyten.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyten/functions.php

    r13923 r13936  
    2020 * remove_filter() and you can attach your own function to the hook.
    2121 *
    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:
    2524 *
    2625 * <code>
    2726 * add_action( 'after_setup_theme', 'my_child_theme_setup' );
    2827 * function my_child_theme_setup() {
    29  *     // We are replacing twentyten_setup() with my_child_theme_setup()
    30  *     remove_action( 'after_setup_theme', 'twentyten_setup' );
    3128 *     // We are providing our own filter for excerpt_length (or using the unfiltered value)
    3229 *     remove_filter( 'excerpt_length', 'twentyten_excerpt_length' );
Note: See TracChangeset for help on using the changeset viewer.