wp_update_php_url хук-фильтрWP 5.1.0

Filters the URL to learn more about updating the PHP 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.

Использование

add_filter( 'wp_update_php_url', 'wp_kama_update_php_url_filter' );

/**
 * Function for `wp_update_php_url` filter-hook.
 * 
 * @param string $update_url URL to learn more about updating PHP.
 *
 * @return string
 */
function wp_kama_update_php_url_filter( $update_url ){

	// filter...
	return $update_url;
}
$update_url(строка)
URL to learn more about updating PHP.

Список изменений

С версии 5.1.0 Введена.

Где вызывается хук

wp_get_update_php_url()
wp_update_php_url
wp-includes/functions.php 8319
$update_url = apply_filters( 'wp_update_php_url', $update_url );

Где используется хук в WordPress

Использование не найдено.