AI助手支持GPT4.0
Allows the user to insert a hook to WordPress and replace english version of the dates and translate them to their own language.
允许用户在WordPress上插入一个钩子,并替换日期的英文版本,并将其翻译成自己的语言。 p>
It uses a modular function that takes as input 3 arguments:
它使用模块化函数,将3个参数作为输入: p>
ol>
It then searches for the English versions and replaces them.
然后搜索英文版本并替换它们。 p>
date_translate.php
/wp-content/plugins/
date_translate.php code>上载到 / wp-content / plugins / code>目录 li>Activate the plugin through the ‘Plugins’ menu in WordPress通过WordPress中的“插件”菜单激活插件 li>Array-ize the days 将天数数组化 <?php $ days =(星期日,星期一,...)?> code> li>Repeat procedure for months and shorthand (Jan, Feb, …)重复数月和速记的程序(1月,2月,…) li>Finalize by hooking – of course, replace array names with your own.通过挂接 <?php qnt_date_translate($ days,$ months,$ months_shorthand)?> code>来完成–当然,用您自己的数组名替换。 li>
/ wp-content / plugins / code>目录 li>Activate the plugin through the ‘Plugins’ menu in WordPress通过WordPress中的“插件”菜单激活插件 li>Array-ize the days 将天数数组化 <?php $ days =(星期日,星期一,...)?> code> li>Repeat procedure for months and shorthand (Jan, Feb, …)重复数月和速记的程序(1月,2月,…) li>Finalize by hooking – of course, replace array names with your own.通过挂接 <?php qnt_date_translate($ days,$ months,$ months_shorthand)?> code>来完成–当然,用您自己的数组名替换。 li>
<?php $ days =(星期日,星期一,...)?> code> li>Repeat procedure for months and shorthand (Jan, Feb, …)重复数月和速记的程序(1月,2月,…) li>Finalize by hooking – of course, replace array names with your own.通过挂接 <?php qnt_date_translate($ days,$ months,$ months_shorthand)?> code>来完成–当然,用您自己的数组名替换。 li>
<?php qnt_date_translate($ days,$ months,$ months_shorthand)?> code>来完成–当然,用您自己的数组名替换。 li>
Examples at plugin GitHub page.
GitHub插件页面上的示例。 p>
原文出处:http://www.sanshu.cn/a/10251.html
群主管理都是支付大佬