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 |
|---|---|
| 4741 | |
| 4742 | if ( empty( $internal_hosts ) ) { |
| 4743 | /** |
| 4744 | * Filters the array of URL hosts which are considered internal. |
| 4745 | * |
| 4746 | * @since 6.2.0 |
| 4747 | * |
| 4748 | * @param array $internal_hosts An array of internal URL hostnames. |
| 4749 | */ |
| 4750 | $internal_hosts = apply_filters( |
| 4751 | 'wp_internal_hosts', |
| 4752 | array( |
| 4753 | wp_parse_url( home_url(), PHP_URL_HOST ), |
| 4754 | ) |
| 4755 | ); |
| 4756 | $internal_hosts = array_unique( |
| 4757 | array_map( 'strtolower', (array) $internal_hosts ) |
| 4758 | ); |
| 4759 | } |