Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/miya0001/add_rewrite_ep
Simple WordPress rewrite class
https://github.com/miya0001/add_rewrite_ep
Last synced: 24 days ago
JSON representation
Simple WordPress rewrite class
- Host: GitHub
- URL: https://github.com/miya0001/add_rewrite_ep
- Owner: miya0001
- Created: 2013-05-14T14:49:15.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-05-15T08:33:52.000Z (over 11 years ago)
- Last Synced: 2024-10-16T01:41:30.890Z (2 months ago)
- Language: PHP
- Size: 160 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# WordPress add rewrite rules interface
## Installing via Composer
### Create composer.json like below.
{
"require": {
"firegoby/add-rewrite-ep": "dev-master"
}
}### Download and install Composer.
curl -s "http://getcomposer.org/installer" | php
### Install your dependencies.
php composer.phar install
### require via autoloader
require '/path/to/sdk/vendor/autoload.php';
## How to use
$app = new Firegoby_AddRewriteEP('app', 'my_callback');
$app->register();
function my_callback(){
echo 'some contents';
exit;
}* You must execute flush_rewrite_rules() in the register_activation_hook() or other.