Disabling Theme Upgrader
As of Framework 4.2.5, Themify upgrader function has been removed in the framework. This tutorial is no longer relevant if you are using any Themify theme with framework 4.2.5+. All Themify themes and plugins can be auto upgraded/installed using Themify Updater plugin.
The following code will prevent checking for Themify theme upgrades so upgrade notices will no longer be displayed:
- Create a file named custom-functions.php in the Themify theme root folder (if it doesn't exist)
- Paste the following code
<?php define('THEMIFY_UPGRADER', false);
- Save the file. If you were editing the file locally, upload it to your server by FTP.
Disabling updates for Builder addons
This will disable the autp update functionality for all Builder addons:
<?php
add_filter( 'themify_builder_updater_enabled', '__return_false' );
To disable it only for particular addons you can use:
<?php
function custom_disable_builder_updater( $enabled, $name, $update_type ) {
$disabled = array( 'builder-image-pro', 'builder-timeline' );
if( in_array( $name, $disabled ) ) {
$enabled = false;
}
return $enabled;
}
add_filter( 'themify_builder_updater_enabled', 'custom_disable_builder_updater', 10, 3 );