/** * Constructor which runs a few checks * * @package MobilePress * @since 1.2 */ public function __construct() { if (MOPR_DBVERSION < MOPR_VERSION) { require_once MOPR_PATH . 'classes/setup.php'; $mobilepress_setup = new Mobilepress_setup(); $mobilepress_setup->mopr_install(); } }
/** * Uninstalls the plugin * * @package MobilePress * @since 1.2 */ public function mopr_load_uninstall() { require_once MOPR_PATH . 'classes/setup.php'; $mobilepress_setup = new Mobilepress_setup(); $mobilepress_setup->mopr_uninstall(); }