Embed Snippet on Your Site
Activer automatiquement TranslatePress Multilingue
add_action('init', function () {
$extensions = [
'translatepress-multilingual/translatepress.php',
];
foreach ($extensions as $extension) {
if (!is_plugin_active($extension) && file_exists(WP_PLUGIN_DIR . '/' . $extension)) {
activate_plugin($extension);
}
}
});
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
Comments