WP Manifestindependent plugin directory
manifest / social / wp-rss-bridge

WP RSS Bridge

Use social network data in you WP project

by Tameroski · github.com/tameroski/wp-rss-bridge · website

2stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/tameroski/wp-rss-bridge/archive/refs/heads/master.zip

Readme

WP RSS Bridge

Use social network data in you WP project.

Based on RSS Bridge

Data are cached for better performances.

Usage

$bridges = array(
    "Facebook" => array(
        'u' => 'zuck',
        'media_type' => 'all'
    ),
    "Twitter" => array(
        'u' => 'Jack',
        'norep' => 'on'
    ),
    "Instagram" => array(
        'u' => 'kimkardashian'
    )
);
$processor = new Wp_Rss_Bridge_Processor($bridges);
$data = $processor->get_data();

Default cache timeout is 24h. This can be changed using :

$processor = new Wp_Rss_Bridge_Processor($bridges, 60); // Second parameter is cache timeout in seconds.

Finally, it's also possible to change the user agent used when querying data :

$processor = new Wp_Rss_Bridge_Processor($bridges, 60, "User Agent");

Bridges

Each bridge has its own settings, defined in its own PHP class in RSS Bridge. See RSS Bridge Documentation and source code for more informations.

Filters

Settings can also be changed using filters :

$user_agent = apply_filters('wp-rss-bridge_user_agent', $user_agent);
$bridges = apply_filters('wp-rss-bridge_bridges', $bridges);
$cache_timeout = apply_filters('wp-rss-bridge_cache_timeout', $cache_timeout);

Read the full README on GitHub →