wp_direct_php_update_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 | 8543 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$direct_update_url
|
URL for directly updating PHP. |
Usage Examples
Basic Usage
<?php
// Hook into wp_direct_php_update_url
add_filter('wp_direct_php_update_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:8543
- How this hook is used in WordPress core
<?php
8538 *
8539 * @since 5.1.1
8540 *
8541 * @param string $direct_update_url URL for directly updating PHP.
8542 */
8543 $direct_update_url = apply_filters( 'wp_direct_php_update_url', $direct_update_url );
8544
8545 return $direct_update_url;
8546 }
8547
8548 /**
PHP Documentation
<?php
/**
* Filters the URL for directly updating the PHP version the site is running on from the host.
*
* @since 5.1.1
*
* @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.