开发者 |
szbl
theandystratton |
---|---|
更新时间 | 2023年8月1日 02:13 |
PHP版本: | 3.0 及以上 |
WordPress版本: | 5.6 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
[szbl_scheduled_content]
to wrap and schedule your content. To hide content until a specific date, use the start
attribute. To have content expire, use the end
attribute:
[szbl_scheduled_content start="Jan 1, 2013 12am" end="Apr 14, 2013 12:00pm"]This is my scheduled content[/szbl_scheduled_content]
You can enter dates/time in any standard format and the plugin should interpret them correctly, using the timezone set under Settings > General.
plugin-name.php
to the /wp-content/plugins/
directoryThe plugin uses PHP's strtotime() function, so any valid date/time format should work.
Omit the start attribute and your content will simply expire.
Omit the end attribute and your content will never expire, it will just be hidden until the start attribute's date.
We make every effort to use the timezone settings within your WordPress installation (comparisons are made using date_i18n which inherits the WP timezone settings).
You can set the following two attributes to toggle nested shortcode processing and applying filters for the_content
:
content_filters
(defaults to true
, can be set to true
or false
)shortcodes
(defaults to true
, can be set to true
or false
)shortcodes
attribute to take effect. You'd only want to use these if you want to remove content filtering (like wpautop
and wptexturize
) but still process shortcodes:
[szbl_scheduled_content start="Jan 1, 2013 12am" end="Apr 14, 2013 12:00pm" content_filtering="false" shortcodes="true"]This is my scheduled content. [another_shortcode] [/szbl_scheduled_content]
ignore_year
attribute to the shortcode, to allow for ignoring the year in the start/end timestamps.