Skip to content
Snippets Groups Projects
Commit b0764848 authored by Mohammad Jangda's avatar Mohammad Jangda
Browse files

Merge pull request #31 from jeffsebring/master

Filter Feed Url

This is useful for feeds which require token authorization, or other url modifications.
parents ee530b2d ef0d2e59
No related branches found
No related tags found
No related merge requests found
......@@ -50,6 +50,9 @@ class Syndication_WP_XML_Client implements Syndication_Client {
* @return array array( 'id' => (string) $transport_name, 'modes' => array( 'push', 'pull' ), 'name' => (string) $name );
*/
private function set_feed_url($url) {
$url = apply_filters( 'syn_feed_url', $url );
if ( parse_url( $url ) ) {
$this->feed_url = $url;
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment