{"action":"opened","issue":{"url":"https://api.github.com/repos/pods-framework/pods/issues/2962","labels_url":"https://api.github.com/repos/pods-framework/pods/issues/2962/labels{/name}","comments_url":"https://api.github.com/repos/pods-framework/pods/issues/2962/comments","events_url":"https://api.github.com/repos/pods-framework/pods/issues/2962/events","html_url":"https://github.com/pods-framework/pods/issues/2962","id":79577199,"number":2962,"title":"[FEATURE] Filter for redirecting after Pods form submission","user":{"login":"Shelob9","id":1994311,"avatar_url":"https://avatars.githubusercontent.com/u/1994311?v=3","gravatar_id":"","url":"https://api.github.com/users/Shelob9","html_url":"https://github.com/Shelob9","followers_url":"https://api.github.com/users/Shelob9/followers","following_url":"https://api.github.com/users/Shelob9/following{/other_user}","gists_url":"https://api.github.com/users/Shelob9/gists{/gist_id}","starred_url":"https://api.github.com/users/Shelob9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shelob9/subscriptions","organizations_url":"https://api.github.com/users/Shelob9/orgs","repos_url":"https://api.github.com/users/Shelob9/repos","events_url":"https://api.github.com/users/Shelob9/events{/privacy}","received_events_url":"https://api.github.com/users/Shelob9/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pods-framework/pods/labels/Enhancement","name":"Enhancement","color":"B7E022"},{"url":"https://api.github.com/repos/pods-framework/pods/labels/Feature","name":"Feature","color":"95BF3B"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-22T19:24:01Z","updated_at":"2015-05-22T19:24:01Z","closed_at":null,"body":"I propose, before that we add a filter before the current redirect to ovveride the existing system. Something like this before L7926\r\n\r\n            $maybe_redirect = apply_filters( 'pods_api_form_redirect', null, $id );\r\n\t    if ( ! is_null( $maybe_redirect ) ) {\r\n\t\t    pods_redirect( $maybe_redirect );\r\n\t    }\r\n\r\nThat way if it the filter isn't used it continues to the existing redirect logic, but the new filter will provide an easier way to redirect to a new post, since ID can be passed to `get_permalink`\r\n\r\nI'd like @sc0ttkclark opinion on this before making a PR."}}