Our API - ManageWP

Important notice! This API is now deprecated and ManageWP now supports all premium plugins and themes that use standard WordPress update functionality to hook and display updates to in the WordPress admin out of the box. You do not need to do anything now, we are leaving this page for reference only.

Premium Theme & Plugin API

The ManageWP Premium Theme & Plugin API is a very simple set of hooks that gives ManageWP’s 60,000+ users the ability to easily update your theme/plugin within the ManageWP dashboard.

The ManageWP Premium Theme & Plugin API consists of three simple hooks. It takes minimal effort to integrate into your theme/plugin, and once integrated, we take care of the rest.

Why integrate this API into your theme/plugin?

  • Your themes and/or plugins become fully compatible with ManageWP, which means our 60,000+ customers can more easily rely on your products/services for their workflows.
  • Your theme/plugin will be listed as a “Premium Update”, and can be updated by our users with a single click for all connected WordPress sites.
  • Your theme/plugin will be fully approved and functional within ManageWP.

Note: If your premium plugin/theme does not yet implement the automatic update feature, we recommend viewing this tutorial.

 

Extending the ManageWP Dashboard

ManageWP supports WordPress filters, which enables you to modify the information presented within the ManageWP dashboard. You can also add your own additional information.

Let’s take a look at an example 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 the ‘extra_html’ row to the $stats array. The end result will be a new widget showing any additional HTML that you pass through this filter.

 

API-graphics3_02Some of our partners, join them with few simple steps:
Partners who already use ManageWP API
Use our badge:
badge