
如何在WordPress文章和页面上显示最近更新日期
wp_get_update_php_annotation ( No parameters )
返回虚拟主机改变 “Update PHP”页面URL的默认注释。
如果虚拟主机改变了默认的 “Update PHP”页面URL,此函数将在{@see}之后使用,以返回一个一致的注释。
function wp_get_update_php_annotation() { $update_url = wp_get_update_php_url(); $default_url = wp_get_default_update_php_url(); if ( $update_url === $default_url ) { return ''; } $annotation = sprintf( /* translators: %s: Default Update PHP page URL. */ __( 'This resource is provided by your web host, and is specific to your site. For more information, <a href="%s" target="_blank">see the official WordPress documentation</a>.' ), esc_url( $default_url ) ); return $annotation; }