Filter hook 'wp_update_https_url'

in WP Core File wp-includes/functions.php at line 8605

View Source

wp_update_https_url

Filter Hook
Description
Filters the URL to learn more about updating the HTTPS version the site is running on. Providing an empty string is not allowed and will result in the default URL being used. Furthermore the page the URL links to should preferably be localized in the site language.

Hook Information

File Location wp-includes/functions.php View on GitHub
Hook Type Filter
Line Number 8605

Hook Parameters

Type Name Description
string $update_url URL to learn more about updating HTTPS.

Usage Examples

Basic Usage
<?php
// Hook into wp_update_https_url
add_filter('wp_update_https_url', 'my_custom_filter', 10, 1);

function my_custom_filter($update_url) {
    // Your custom filtering logic here
    return $update_url;
}

Source Code Context

wp-includes/functions.php:8605 - How this hook is used in WordPress core
<?php
8600  	 *
8601  	 * @since 5.7.0
8602  	 *
8603  	 * @param string $update_url URL to learn more about updating HTTPS.
8604  	 */
8605  	$update_url = apply_filters( 'wp_update_https_url', $update_url );
8606  	if ( empty( $update_url ) ) {
8607  		$update_url = $default_url;
8608  	}
8609  
8610  	return $update_url;

PHP Documentation

<?php
/**
	 * Filters the URL to learn more about updating the HTTPS version the site is running on.
	 *
	 * Providing an empty string is not allowed and will result in the default URL being used. Furthermore
	 * the page the URL links to should preferably be localized in the site language.
	 *
	 * @since 5.7.0
	 *
	 * @param string $update_url URL to learn more about updating HTTPS.
	 */
Quick Info
  • Hook Type: Filter
  • Parameters: 1
  • File: wp-includes/functions.php
Related Hooks

Related hooks will be displayed here in future updates.