/** * Short Description. (use period) * * Long Description. * * @since 0.0.1 */ public static function activate() { if (!is_dir(ABSPATH . 'wp-content/plugins/rest-api/')) { die('<a href="http://v2.wp-api.org/" target="_blank">WP-API</a> plugin is required, Please install plugin first.'); } if (!is_dir(ABSPATH . 'wp-content/plugins/Basic-Auth/')) { die('<a href="https://github.com/WP-API/Basic-Auth" target="_blank">WP-API Basic Auth</a> plugin is required, Please install plugin first.'); } Coderio_Activator::run_activate_plugin('Basic-Auth/basic-auth.php'); Coderio_Activator::run_activate_plugin('rest-api/plugin.php'); }
/** * The code that runs during plugin activation. * This action is documented in includes/class-coderio-activator.php */ function activate_Coderio() { require_once plugin_dir_path(__FILE__) . 'includes/class-coderio-activator.php'; Coderio_Activator::activate(); }