WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 82 | } |
| 83 | |
| 84 | // If home is not set use siteurl. |
| 85 | if ( 'home' == $option && '' == $value ) |
| 86 | return get_option( 'siteurl' ); |
| 87 | |
| 88 | if ( in_array( $option, array('siteurl', 'home', 'category_base', 'tag_base') ) ) |
| 89 | $value = untrailingslashit( $value ); |
| 90 | |
| 91 | return apply_filters( 'option_' . $option, maybe_unserialize( $value ) ); |
| 92 | } |
| 93 | |
| 94 | /** |
| 95 | * Protect WordPress special option from being modified. |
| 96 | * |
| 97 | * Will die if $option is in protected list. Protected options are 'alloptions' |
| 98 | * and 'notoptions' options. |
| 99 | * |
| 100 | * @since 2.2.0 |