mirror of
https://gh.wpcy.net/https://github.com/mainwp/mainwp-custom-dashboard-extension-examples.git
synced 2026-05-27 14:33:57 +08:00
10 lines
557 B
PHP
10 lines
557 B
PHP
<?php
|
|
|
|
// Custom snippet to add support for better Premium plugins updates detection. Example for Elementor Extras. Multiple plugins can be added to the $premiums array
|
|
|
|
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;
|
|
}
|