wp_direct_update_https_url
Filter HookDescription
Filters the URL for directly updating the PHP version the site is running on from the host.Hook Information
File Location |
wp-includes/functions.php
View on GitHub
|
Hook Type | Filter |
Line Number | 8655 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$direct_update_url
|
URL for directly updating PHP. |
Usage Examples
Basic Usage
<?php
// Hook into wp_direct_update_https_url
add_filter('wp_direct_update_https_url', 'my_custom_filter', 10, 1);
function my_custom_filter($direct_update_url) {
// Your custom filtering logic here
return $direct_update_url;
}
Source Code Context
wp-includes/functions.php:8655
- How this hook is used in WordPress core
<?php
8650 *
8651 * @since 5.7.0
8652 *
8653 * @param string $direct_update_url URL for directly updating PHP.
8654 */
8655 $direct_update_url = apply_filters( 'wp_direct_update_https_url', $direct_update_url );
8656
8657 return $direct_update_url;
8658 }
8659
8660 /**
PHP Documentation
<?php
/**
* Filters the URL for directly updating the PHP version the site is running on from the host.
*
* @since 5.7.0
*
* @param string $direct_update_url URL for directly updating PHP.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-includes/functions.php
Related Hooks
Related hooks will be displayed here in future updates.