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 |
|---|---|
| 4865 | |
| 4866 | if ( empty( $internal_hosts ) ) { |
| 4867 | /** |
| 4868 | * Filters the array of URL hosts which are considered internal. |
| 4869 | * |
| 4870 | * @since 6.2.0 |
| 4871 | * |
| 4872 | * @param string[] $internal_hosts An array of internal URL hostnames. |
| 4873 | */ |
| 4874 | $internal_hosts = apply_filters( |
| 4875 | 'wp_internal_hosts', |
| 4876 | array( |
| 4877 | wp_parse_url( home_url(), PHP_URL_HOST ), |
| 4878 | ) |
| 4879 | ); |
| 4880 | $internal_hosts = array_unique( |
| 4881 | array_map( 'strtolower', (array) $internal_hosts ) |
| 4882 | ); |
| 4883 | } |