您可以尝试将template.php
文件:
<?php
if( ! function_exists( \'touch_time\' ) )
{
require_once( ABSPATH . \'/wp-admin/includes/template.php\' );
touch_time( 0, 0, 5 );
}
?>
但我认为从
touch_time()
函数转换为您自己的函数并进行相应修改。
答案的星期五部分:
“一团糟”和“黑魔法”
根据内联文档,该文件是
Big Mess ;-)
/**
* Template WordPress Administration API.
*
* A Big Mess. Also some neat functions that are nicely written.
*
小心
Black Magic 在
/wp-includes/rewrite.php
文件:
/**
* Generate rewrite rules from a permalink structure.
*
* The main WP_Rewrite function for building the rewrite rule list. The
* contents of the function is a mix of black magic and regular expressions,
* so best just ignore the contents and move to the parameters.
*
因此,请注意插件中包含的内容;-)