Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/shawnhooper/http-verb-condtional-display-shortcode/archive/refs/heads/master.zipOn Packagist as actionable/http-verb-condtional-display-shortcode:
composer require actionable/http-verb-condtional-display-shortcodeNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
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/