Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.