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