File: /home/joderbya/public_html/ss-servicos/wp-content/themes/bugspatrol/plugins/plugin.wpml.php
<?php
/* WPML support functions
------------------------------------------------------------------------------- */
// Check if WPML installed and activated
if ( !function_exists( 'bugspatrol_exists_wpml' ) ) {
function bugspatrol_exists_wpml() {
return defined('ICL_SITEPRESS_VERSION') && class_exists('sitepress');
}
}
// Filter to add in the required plugins list
if ( !function_exists( 'bugspatrol_wpml_required_plugins' ) ) {
function bugspatrol_wpml_required_plugins($list=array()) {
if (in_array('wpml', bugspatrol_storage_get('required_plugins'))) {
$path = bugspatrol_get_file_dir('plugins/install/wpml.zip');
if (file_exists($path)) {
$list[] = array(
'name' => esc_html__('WPML', 'bugspatrol'),
'slug' => 'wpml',
'source' => $path,
'required' => false
);
}
}
return $list;
}
}
?>