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 |
---|---|
4814 |
|
4815 | if ( empty( $internal_hosts ) ) { |
4816 | /** |
4817 | * Filters the array of URL hosts which are considered internal. |
4818 | * |
4819 | * @since 6.2.0 |
4820 | * |
4821 | * @param string[] $internal_hosts An array of internal URL hostnames. |
4822 | */ |
4823 | $internal_hosts = apply_filters( |
4824 | 'wp_internal_hosts', |
4825 | array( |
4826 | wp_parse_url( home_url(), PHP_URL_HOST ), |
4827 | ) |
4828 | ); |
4829 | $internal_hosts = array_unique( |
4830 | array_map( 'strtolower', (array) $internal_hosts ) |
4831 | ); |
4832 | } |