petenelson/wp-rest-api-toolbox

View on GitHub
uninstall.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) die( 'restricted access' );

$keys = array(
    'rest-api-toolbox-general',
    'rest-api-toolbox-core',
    'rest-api-toolbox-ssl',
);

// remove options
foreach ( $keys as $key ) {
    delete_option( $key );
}