paulbunyannet / wordpress-helper-shortcodes
Helper shortcodes used from project to project.
1.0.3
2021-07-30 20:12 UTC
Requires (Dev)
- fzaninotto/faker: ^1.6
- mockery/mockery: ^0.9.9
- phpunit/phpunit: ^4.8
- symfony/var-dumper: ^3.2
This package is auto-updated.
Last update: 2025-03-01 00:45:16 UTC
README
Helper shortcodes used from project to project
Shortcodes
[env]
Get an environment variable.
Usage
[env ENVIRONMENT_VAR_NAME]
[bloginfo]
Get blog info.
Properties
Property | Default | ||
---|---|---|---|
key | Required | What property to get from the blog. See https://developer.wordpress.org/reference/functions/get_bloginfo/#description for all the options. | name |
filter | Optional | What filter to use on the returned value | raw |
Usage
[bloginfo key="url" filter="raw"]
\\ return url of the site with the raw filter