| Server IP : 104.26.4.103 / Your IP : 216.73.216.4 Web Server : nginx/1.27.1 System : Linux in-5 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64 User : arabianexpress ( 1872) PHP Version : 8.0.30 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /storage/v9321/buzzbitesv3/public_html/wp-content/themes/bite/skins/ |
Upload File : |
<?php
/**
* This file is NOT updated when the theme engine is updated
* and contains features that affect all skins in the theme lineup.
*
* @package BITE
* @since BITE 2.34.6
*/
if ( ! function_exists( 'bite_ai_assistant_type' ) ) {
add_filter( 'trx_addons_filter_ai_assistant_type', 'bite_ai_assistant_type' );
/**
* Set the type of AI Support Assistant to use.
*
* @since BITE 2.34.6
*
* @hooked trx_addons_filter_ai_assistant_type
*
* @param string $type The type of AI Support Assistant to use: 'v1' for Qwery-based, 'v2' for Bite-based themes
*
* @return string The modified type of AI Support Assistant to use
*/
function bite_ai_assistant_type( $type = 'v1') {
return 'v2';
}
}
/* ThemeREX Addons components
------------------------------------------------------------------------------- */
if ( ! function_exists( 'bite_skins_trx_addons_theme_specific_setup1' ) ) {
add_action( 'after_setup_theme', 'bite_skins_trx_addons_theme_specific_setup1', 1 );
function bite_skins_trx_addons_theme_specific_setup1() {
if ( bite_exists_trx_addons() ) {
add_filter( 'trx_addons_addons_list', 'bite_trx_addons_addons_list', 100 );
}
}
}
// Addons
if ( ! function_exists( 'bite_trx_addons_addons_list' ) ) {
//Handler of the add_filter( 'trx_addons_addons_list', 'bite_trx_addons_addons_list', 100 );
function bite_trx_addons_addons_list( $list = array() ) {
// To do: Enable/Disable theme-specific addons via add/remove it in the list
if ( is_array( $list ) ) {
// List of the theme/skin required addons:
$required_addons = array(
'elementor-templates' => array( 'title' => esc_html__( 'Elementor Templates', 'bite' ) ),
'elementor-widgets' => array( 'title' => esc_html__( 'Elementor Widgets', 'bite' ) ),
'expand-collapse' => array( 'title' => esc_html__( 'Expand / Collapse', 'bite' ) ),
);
foreach( $required_addons as $k => $v ) {
if ( ! isset( $list[ $k ] ) || ! is_array( $list[ $k ] ) ) {
$list[ $k ] = $v;
}
$list[ $k ]['required'] = true;
}
}
return $list;
}
}