<?php require get_template_directory() . '/core/includes/class-tgm-plugin-activation.php'; /** * Recommended plugins. */ function creative_portfolio_lite_register_recommended_plugins() { $plugins = array( array( 'name' => __( 'Kirki Customizer Framework', 'creative-portfolio-lite' ), 'slug' => 'kirki', 'required' => false, 'force_activation' => false, ), array( 'name' => __( 'Google Language Translator', 'creative-portfolio-lite' ), 'slug' => 'google-language-translator', 'required' => false, 'force_activation' => false, ), ); $config = array(); creative_portfolio_lite_tgmpa( $plugins, $config ); } add_action( 'tgmpa_register', 'creative_portfolio_lite_register_recommended_plugins' );