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 |
---|---|
4787 |
|
4788 | if ( empty( $internal_hosts ) ) { |
4789 | /** |
4790 | * Filters the array of URL hosts which are considered internal. |
4791 | * |
4792 | * @since 6.2.0 |
4793 | * |
4794 | * @param string[] $internal_hosts An array of internal URL hostnames. |
4795 | */ |
4796 | $internal_hosts = apply_filters( |
4797 | 'wp_internal_hosts', |
4798 | array( |
4799 | wp_parse_url( home_url(), PHP_URL_HOST ), |
4800 | ) |
4801 | ); |
4802 | $internal_hosts = array_unique( |
4803 | array_map( 'strtolower', (array) $internal_hosts ) |
4804 | ); |
4805 | } |