wp_authorize_application_redirect_url_invalid_protocols

wp_authorize_application_redirect_url_invalid_protocols

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('wp_authorize_application_redirect_url_invalid_protocols') is found 1 times:

  • /wp-admin/includes/user.php line 733
    	 *
    	 * @param string[] $bad_protocols Array of invalid protocols.
    	 * @param string   $url The redirect URL to be validated.
    	 */
    	$invalid_protocols = apply_filters( 'wp_authorize_application_redirect_url_invalid_protocols', $bad_protocols, $url );
    	$invalid_protocols = array_map( 'strtolower', $invalid_protocols );
    
    	$scheme   = wp_parse_url( $url, PHP_URL_SCHEME );
    	$host     = wp_parse_url( $url, PHP_URL_HOST );
    	$is_local = 'local' === wp_get_environment_type();