PHP code example of wordpoints / module-uninstall-tester
1. Go to this page and download the library: Download wordpoints/module-uninstall-tester library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
wordpoints / module-uninstall-tester example snippets
/*
* This needs to go after you .php file.
*/
// Include the plugin uninstall test tools functions.
vendor/wordpoints/module-uninstall-tester/functions.php';
// Check if the tests are running. Only load the plugin if they aren't.
if ( ! running_wordpoints_module_uninstall_tests() ) {
tests_add_filter( 'muplugins_loaded', 'my_plugin_activate' );
}
/*
* This needs to be extends WordPress's WP_UnitTestCase class.
*/
// Include the plugin uninstall tools bootstrap.
le-uninstall-tester/bootstrap.php';