开发者 | gordi555 |
---|---|
更新时间 | 2014年8月10日 18:13 |
捐献地址: | 去捐款 |
PHP版本: | 3.3 及以上 |
WordPress版本: | 3.5.1 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
plugin-name.php
to the /wp-content/plugins/
directory<?php do_action('plugin_name_hook'); ?>
in your templates and use the 'format' argument to display the current date and time information in a number of different ways.Simply insert the following code into your post to display the current year. [datetool_current format="Y"] This displays: 2013
For a complete reference and combinations you can visit this page: http://php.net/manual/en/function.date.php Some examples... Shortcode: [datetool_current format="Y"] Output: 2013 (or what the current year is) Shortcode: [datetool_current format="d"] Output: 16 (or what number the current day is) Shortcode: [datetool_current format="jS F Y"] Output: 24th June 2013 (or what number the current date is)