WordPress hook directory
allowed_redirect_hosts

Description

Applied to the list of host names deemed safe for redirection. wp-login.php uses this to defend against a dangerous 'redirect_to' request parameter

This description was scraped automatically from the WordPress filter reference or action reference. If it looks like this is the wrong description, please tell me so I can fix my code.

WordPress version history for allowed_redirect_hosts

This database has information for all major versions from WP 1.2.1 through 5.1.

Version File Line Type
2.3 wp-includes/pluggable.php 437 View in context filter
2.5 wp-includes/pluggable.php 751 View in context filter
2.6 wp-includes/pluggable.php 836 View in context filter
2.7 wp-includes/pluggable.php 916 View in context filter
2.8 wp-includes/pluggable.php 931 View in context filter
2.9 wp-includes/pluggable.php 949 View in context filter
3.0 wp-includes/pluggable.php 984 View in context filter
3.1 wp-includes/pluggable.php 990 View in context filter
3.2 wp-includes/pluggable.php 1027 View in context filter
3.3 wp-includes/pluggable.php 959 View in context filter
3.4 wp-includes/pluggable.php 974 View in context filter
3.5 wp-includes/pluggable.php 969 View in context filter
3.6 wp-includes/pluggable.php 968 View in context filter
3.7 wp-includes/pluggable.php 995 View in context filter
3.8 wp-includes/pluggable.php 992 View in context filter
3.9 wp-includes/pluggable.php 1224 View in context filter
4.0 wp-includes/pluggable.php 1276 View in context filter
4.1 wp-includes/pluggable.php 1279 View in context filter
4.2 wp-includes/pluggable.php 1323 View in context filter
4.3 wp-includes/pluggable.php 1339 View in context filter
4.4 wp-includes/pluggable.php 1360 View in context filter
4.5 wp-includes/pluggable.php 1319 View in context filter
4.6 wp-includes/pluggable.php 1322 View in context filter
4.7 wp-includes/pluggable.php 1327 View in context filter
4.8 wp-includes/pluggable.php 1358 View in context filter
4.9 wp-includes/pluggable.php 1364 View in context filter
5.0 wp-includes/pluggable.php 1371 View in context filter
5.1 wp-includes/pluggable.php 1421 View in context filter

Related Hooks

We find related hooks using word stems. allowed_redirect_hosts has 3 significant word stem(s): allowed, redirect, hosts. Note that some of the hooks below may not appear in all versions of WP.