Changeset 3230743 for addons-for-divi/trunk/freemius.php
- Timestamp:
- 01/28/2025 04:53:36 PM (21 months ago)
- File:
-
- 1 edited
-
addons-for-divi/trunk/freemius.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
addons-for-divi/trunk/freemius.php
r3088441 r3230743 2 2 3 3 if (!function_exists('dtp_fs')) { 4 5 4 function dtp_fs() 6 5 { 7 8 6 global $dtp_fs; 9 7 … … 15 13 'id' => '14886', 16 14 'slug' => 'addons-for-divi', 17 'premium_slug' => 'divitorque-pro',18 15 'type' => 'plugin', 19 16 'public_key' => 'pk_8f558616fc3f1a6ad3193595141b1', 20 17 'is_premium' => false, 21 'is_premium_only' => false,22 18 'has_addons' => false, 23 19 'has_paid_plans' => true, 24 20 'is_org_compliant' => true, 25 21 'menu' => array( 26 'slug' => 'divitorque',27 ' contact'=> false,28 ' support'=> false,29 'p arent' => array(30 'slug' => 'diviepic-plugins',31 ),22 'slug' => 'divitorque', 23 'account' => false, 24 'contact' => false, 25 'pricing' => false, 26 'support' => false, 27 'affiliation' => false, 32 28 ), 33 29 'is_live' => true, … … 49 45 }); 50 46 51 // Disable affiliate notice 52 $dtp_fs->add_filter('show_affiliate_program_notice', '__return_false'); 53 // Disable auto deactivation 54 $dtp_fs->add_filter('deactivate_on_activation', '__return_false'); 55 // Disable redirect on activation 56 $dtp_fs->add_filter('redirect_on_activation', '__return_false'); 47 // Disable some Freemius features. 48 dtp_fs()->add_filter('show_deactivation_feedback_form', '__return_false'); 49 dtp_fs()->add_filter('hide_freemius_powered_by', '__return_true'); 50 dtp_fs()->add_filter('permission_diagnostic_default', '__return_false'); 51 // Disable opt-in option by default 52 dtp_fs()->add_filter('permission_extensions_default', '__return_false'); 53 54 // Hide Freemius notices that can easily annoy users. 55 dtp_fs()->add_filter( 56 'show_admin_notice', 57 function ($show, $message) { 58 if ($message['id'] === 'license_activated' || $message['id'] === 'premium_activated' || $message['id'] === 'connect_account') { 59 return false; 60 } 61 return $show; 62 }, 63 10, 64 2 65 ); 57 66 58 67 // Signal that SDK was initiated.
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)