install('https://downloads.wordpress.org/plugin/backuply.zip'); if(!is_wp_error($installed) && $installed){ $activate = activate_plugin('backuply/backuply.php'); //wp_safe_redirect(admin_url('/')); } } } // Do not shows the activation text if function backuply_pro_prevent_activation_text($install_actions, $api, $plugin_file){ if($plugin_file == 'backuply/backuply.php'){ return array(); } return $install_actions; } function backuply_pro_free_version_nag(){ echo '

You have not installed the free version of Backuply. Backuply Pro depends on the free version, so you must install it first in order to use Backuply. Install Now

'; } function backuply_pro_add_menu(){ add_menu_page('Backuply Dahsboard', 'Backuply', 'activate_plugins', 'backuply', 'backuply_pro_menu_page'); } function backuply_pro_menu_page(){ echo '

Backuply Free version is not installed!

Backuply Pro depends on the free version of Backuply, so you need to install the free version first.

Install Now

'; } return; } include_once(__DIR__ . '/init.php');