addUserAction( /* type */ 'settings', /* action */ 'delete_all', /* ns */ My::id(), /* description */ __('delete all settings') ); $uninstaller->addUserAction( /* type */ 'plugins', /* action */ 'delete', /* ns */ My::id(), /* description */ __('delete plugin files') ); $uninstaller->addUserAction( /* type */ 'versions', /* action */ 'delete', /* ns */ My::id(), /* description */ __('delete the version number') ); $uninstaller->addDirectAction( /* type */ 'settings', /* action */ 'delete_all', /* ns */ My::id(), /* description */ sprintf(__('delete all %s settings'), My::id()) ); $uninstaller->addDirectAction( /* type */ 'plugins', /* action */ 'delete', /* ns */ My::id(), /* description */ sprintf(__('delete %s plugin files'), My::id()) ); $uninstaller->addDirectAction( /* type */ 'versions', /* action */ 'delete', /* ns */ My::id(), /* description */ sprintf(__('delete %s version number'), My::id()) ); return true; } }