mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-01 08:37:55 +02:00
Update obsolete docs in Twentyten.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13936 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b74a1b0603
commit
40a8e989e1
@ -19,15 +19,12 @@
|
|||||||
* to a filter or action hook. The hook can be removed by using remove_action() or
|
* to a filter or action hook. The hook can be removed by using remove_action() or
|
||||||
* remove_filter() and you can attach your own function to the hook.
|
* remove_filter() and you can attach your own function to the hook.
|
||||||
*
|
*
|
||||||
* In this example, since both hooks are attached using the default priority (10), the first
|
* We can remove the parent theme's hook only after it is attached, which means we need to
|
||||||
* one attached (which would be the child theme) will run. We can remove the parent theme's
|
* wait until setting up the child theme:
|
||||||
* hook only after it is attached, which means we need to wait until setting up the child theme:
|
|
||||||
*
|
*
|
||||||
* <code>
|
* <code>
|
||||||
* add_action( 'after_setup_theme', 'my_child_theme_setup' );
|
* add_action( 'after_setup_theme', 'my_child_theme_setup' );
|
||||||
* function my_child_theme_setup() {
|
* function my_child_theme_setup() {
|
||||||
* // We are replacing twentyten_setup() with my_child_theme_setup()
|
|
||||||
* remove_action( 'after_setup_theme', 'twentyten_setup' );
|
|
||||||
* // We are providing our own filter for excerpt_length (or using the unfiltered value)
|
* // We are providing our own filter for excerpt_length (or using the unfiltered value)
|
||||||
* remove_filter( 'excerpt_length', 'twentyten_excerpt_length' );
|
* remove_filter( 'excerpt_length', 'twentyten_excerpt_length' );
|
||||||
* ...
|
* ...
|
||||||
|
Loading…
Reference in New Issue
Block a user