HTTP Verb Conditional Display Shortcode
Allows you to conditionally display a block of content depending on the HTTP verb (GET, POST, etc) used to call the page.
by Shawn Hooper, Actionable · github.com/shawnhooper/http-verb-condtional-display-shortcode
★ 0stars
43composer installs
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/shawnhooper/http-verb-condtional-display-shortcode/archive/refs/heads/master.zipAlso on Packagist as actionable/http-verb-condtional-display-shortcode:
composer require actionable/http-verb-condtional-display-shortcodeFrom the readme
HTTP Verb Conditional Display Shortcode
Shortcodes that restrict a block of content to only be displayed if the HTTP verb used to call the page (POST, GET, etc.) meets the requested criteria.
Shortcodes
The plugin currently supports the following shortcodes:
[httpgetonly]
[httppostonly]
Usage
Wrap content that you want to restrict to a given HTTP verb in the shortcode. For example, if you wanted to only display content if the POST verb was used:
[httppostonly]
This page was POSTed!
[/httppostonly]
Issues
Please report any issues with this plugin on GitHub at https://github.com/shawnhooper/http-verb-condtional-display-shortcode/