: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
if ($slug === 'others') {
unset($items['themify']);
return empty($items) ? false : $items;
if (defined('TF_CACHE') && TF_CACHE) {
$items['themify'] = true;
return isset($items[$slug]);
public static function themify_updated($upgrader_object, $options) {
if ($options['action'] === 'update') {
if ($options['type'] === 'plugin' && defined('THEMIFY_BUILDER_SLUG')) {
if (isset($options['plugins'])) {
foreach ($options['plugins'] as $each_plugin) {
if ($each_plugin === THEMIFY_BUILDER_SLUG) {
self::clear_3rd_plugins_cache();
} elseif ($options['type'] === 'theme' && function_exists('themify_is_themify_theme') && themify_is_themify_theme()) {
self::clear_3rd_plugins_cache();
add_action('after_setup_theme', array('TFCache', 'hooks'));