WP-Router icon indicating copy to clipboard operation
WP-Router copied to clipboard

Routes paths to callback functions in WordPress

Results 14 WP-Router issues
Sort by recently updated
recently updated
newest added

examine we have this : 'path' => 'download/file/([0-9]+)/{name}', how we can get these parameters in function ? ``` function create_routes_customs( $router ) { $router->add_route('download', array( 'path' => 'download/file/([0-9]+)/{name}', 'access_callback' =>...

To plugin directory, main plugin file, readme, and `composer.json`

Hi there, how to add dynamic id before my page path name and after my page path name like this 'path' => '(.*?)/travel-stories/(.*?)$', when I remove first dynamic id its...

Hi, This may be a very simple thing to do but can't figure it out. Q- How does one go about including css files on the page accessible through a...

![screenshot 2014-08-13 12 00 10](https://cloud.githubusercontent.com/assets/4140247/3909227/681de6ca-230b-11e4-88da-887546bab720.png) Security audit log is full of these alerts... what to do ? These are being generated by external IPs

Needed a way to set a custom body class for my routes so I extended your plugin to support it. I think this is a nice feature and would like...

I keep getting comment spam on the WP Router Placeholder Page. This is the case even though I disabled comments for the whole site. As a possible work around I've...

Hello! I'd like to use this plugin to create custom routes, assign query vars to wordpress, and then pass the request back to WordPress. How would I do this? Thanks!

public function set_post_contents( $post ) { global $pages; $pages = array($this->contents); } This function overwrites the global $pages to only include what is given in the route callback. I fix...

Hello, Is there a way to test what route I'm showing, example, in my header.php, I'd like to do : ``` php if(is_route('my_custom_routing')) { echo 'menu-active'; } ``` thanks