{"action":"created","issue":{"url":"https://api.github.com/repos/lucatume/wp-routing/issues/2","labels_url":"https://api.github.com/repos/lucatume/wp-routing/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/lucatume/wp-routing/issues/2/comments","events_url":"https://api.github.com/repos/lucatume/wp-routing/issues/2/events","html_url":"https://github.com/lucatume/wp-routing/issues/2","id":65493376,"number":2,"title":"Handle filter fail","user":{"login":"chrisvanpatten","id":1231306,"avatar_url":"https://avatars.githubusercontent.com/u/1231306?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisvanpatten","html_url":"https://github.com/chrisvanpatten","followers_url":"https://api.github.com/users/chrisvanpatten/followers","following_url":"https://api.github.com/users/chrisvanpatten/following{/other_user}","gists_url":"https://api.github.com/users/chrisvanpatten/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisvanpatten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisvanpatten/subscriptions","organizations_url":"https://api.github.com/users/chrisvanpatten/orgs","repos_url":"https://api.github.com/users/chrisvanpatten/repos","events_url":"https://api.github.com/users/chrisvanpatten/events{/privacy}","received_events_url":"https://api.github.com/users/chrisvanpatten/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-31T16:31:38Z","updated_at":"2015-04-01T23:12:06Z","closed_at":null,"body":"If you have a filter set up, something like this...\r\n\r\n```php\r\nWPRouting_Route::filter('logged_in', function(){\r\n        return is_user_logged_in();\r\n    }) ;\r\n\r\nWPRouting_Route::get( '^account/edit$', array( 'logged_in', '__return_empty_string' ) )\r\n    ->withTitle( 'Edit Your Account' )\r\n    ->withTemplate( array(\r\n        'path/to/template.php',\r\n    ) );\r\n```\r\n\r\nIt'd be really nice to be able to do something other than default to a `wp_die()` page. Not sure how, but it'd be nice :)"},"comment":{"url":"https://api.github.com/repos/lucatume/wp-routing/issues/comments/88660094","html_url":"https://github.com/lucatume/wp-routing/issues/2#issuecomment-88660094","issue_url":"https://api.github.com/repos/lucatume/wp-routing/issues/2","id":88660094,"user":{"login":"chrisvanpatten","id":1231306,"avatar_url":"https://avatars.githubusercontent.com/u/1231306?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisvanpatten","html_url":"https://github.com/chrisvanpatten","followers_url":"https://api.github.com/users/chrisvanpatten/followers","following_url":"https://api.github.com/users/chrisvanpatten/following{/other_user}","gists_url":"https://api.github.com/users/chrisvanpatten/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisvanpatten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisvanpatten/subscriptions","organizations_url":"https://api.github.com/users/chrisvanpatten/orgs","repos_url":"https://api.github.com/users/chrisvanpatten/repos","events_url":"https://api.github.com/users/chrisvanpatten/events{/privacy}","received_events_url":"https://api.github.com/users/chrisvanpatten/received_events","type":"User","site_admin":false},"created_at":"2015-04-01T23:12:06Z","updated_at":"2015-04-01T23:12:06Z","body":"Thanks :)"}}