开发者 |
zaus
spkane |
---|---|
更新时间 | 2017年5月5日 17:38 |
捐献地址: | 去捐款 |
PHP版本: | 3.0 及以上 |
WordPress版本: | 4.1 |
版权: | GPLv2 or later |
##UID##
, ##REFERER##
, or ##SITEURL##
, add dynamic fields to the normally map-only or static-only Forms: 3rdparty Integration plugin.
/wp-content/plugins/
)Submit an issue to the GitHub issue tracker in addition to / instead of the WP Support Forums.
See "base plugin" Forms: 3rdparty Integration. Expand the box "Dynamic Placeholder Examples" below the 'save' button for allowed dynamic fields. Additionally, you'll need to check the 'Is Value?' column.
Use the placeholder ##GET:{urlparam}##
as the static value, which will attach the value XYZ
from the url in ?urlparam=XYZ
.
Use the placeholder ##COOKIE:{hamburgler}##
as the static value, which will attach the value XYZ
from the cookie named hamburgler
.
These are also listed within the plugin settings under the "[?] Dynamic Placeholder Examples" metabox -- double click each option for automatic entry. Live "example previews" are also shown for each within the metabox.
##TIMESTAMP##
= the current timestamp (from time
)##DATE_ISO##
= date, formatted to ISO 8601 "Y-m-d\TH:i:sP" (PHP5)##DATE##
= wordpress-formatted current date (date_i18n( get_option('date_format'), time() );
)##TIME##
= wordpress-formatted current date (date_i18n( get_option('date_format'), time() );
)##UID##
= a unique id##IP##
= the visitor IP##SITEURL##
= the site url, according to wordpress (get_site_url
)##NETWORKSITEURL##
= the network site url, according to wordpress (network_site_url
)##SITENAME##
= the site name, according to wordpress (get_bloginfo('name')
)##ADMINEMAIL##
= the admin email, according to wordpress (get_bloginfo('admin_email')
)##PAGEURL##
= the current page (permalink) that has the form, according to wordpress (get_permalink
)##REQUESTURL##
= the current page, according to PHP##REFERER##
= the referer, according to PHP##WPREFERER##
= the referer, according to wordpress (wp_get_referer
)##GET:{
= prefix to attach querystring parameters (see section above)##COOKIE:{
= prefix to attach cookies (see section above)##SESSION:{
= prefix to attach sessions (see section above)=
= prefix to perform calculations on other input fields, like {input_1} / 12 + round({input_2} / 2)
=
using non-eval parser https://github.com/jlawrence11/eos