Skip to content

Instantly share code, notes, and snippets.

@bogdan-mainwp
Last active May 14, 2020 01:36
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bogdan-mainwp/66b7ef3ac11e4b929ced73c82330e533 to your computer and use it in GitHub Desktop.
Save bogdan-mainwp/66b7ef3ac11e4b929ced73c82330e533 to your computer and use it in GitHub Desktop.
Support for the Premium Plugin updates
<?php
// Add the following code snippet to the PHP section of the MainWP Custom Dashboard Extension or the functions.php file of the active theme on your Dashboard site.
add_filter( 'mainwp_detect_premium_plugins_update', 'myhook_mainwp_detect_premium_plugins_update', 10 );
function myhook_mainwp_detect_premium_plugins_update( $premiums ) {
// add plugin info (slug) here. In this example, we used Elementor Extras, but you should replace it with the correct plugin info
$premiums[] = 'elementor-extras/elementor-extras.php';
return $premiums;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment