WP Manifestindependent plugin directory
manifest / developer / wordpress-custom-path-handler

WordPress Custom Path Handler

WordPress plugin to demonstrate creating a custom path to output custom data.

by Loren J. Brown <ljbrown238@hotmail.com> · github.com/ljbrown238/wordpress-custom-path-handler · website

0stars
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/ljbrown238/wordpress-custom-path-handler/archive/refs/heads/master.zip

Declares an update source (https://github.com/ljbrown238/wordpress-custom-path-handler.git), so updates arrive through the plugin's own updater.

From the readme

WordPress Plugin: WordPress Custom Path Handler This plugin demonstrates the use of a simple class that provides handling of a custom path. The path does not need to exist in WordPress. If the path already exists in WordPress, this handler will display the custom content and the existing POST or PAGE will be ignored. If there is another endpoint created by another plugin, results will depend on the handler priorities. Usage is simple: create a new instance of CustomPathHandler passing in the 'slug' (path) to be handled, followed by a callback the user will define to generate the custom output. Three examples are used in this test code. Generating a small PDF, PNG, and sample JSON output from the WordPress Options table.

Read the full README on GitHub →