API

ManageWP API has easy to use API which allows developers to unleash the power of ManageWP in their WordPress plugins and themes.

Premium theme and plugin updates

ManageWP allows updating plugins and themes in bulk, across all user websites with just a single click.

To support this functionality in your addon, all you need to do is add three hooks – we take care of everything else.

We have created a detailed example which you can download by clicking below.

Download API examples

Adding a widget to ManageWP dashboard

ManageWP supports a WordPress filter which allows developers to modify the information presented on ManageWP dashboard as well as add their own information.

Let’s take a look a the code below.

// add filter for the stats structure
add_filter('mmb_stats_filter', mmb_extra_html_example);

function mmb_extra_html_example($stats)
 {
        $count_posts = wp_count_posts();

        $published_posts = $count_posts->publish;

        // add 'extra_html' element. This is what gets displayed in the dashboard
 	$stats['extra_html'] = '

Hello from '.get_bloginfo('name').' with '.$published_posts.' published posts.

';

 	// return the whole array back
 	return $stats;
 }

We publish ‘mmb_stats_filter’ which you can use to add ‘extra_html’ row to the $stats array. The end result will be a new widget showing any HTML that you pass it to through this filter.

More API calls are available for the self-hosted version.