uninstall.php 870 Bytes
Newer Older
MediaFormat's avatar
MediaFormat committed
1 2 3 4 5
<?php
if (!defined('WP_UNINSTALL_PLUGIN')) {
    die;
}

6 7 8
delete_option( 'fediembedi-notice' );

//original options < 0.8.0
MediaFormat's avatar
MediaFormat committed
9 10 11 12 13
delete_option( 'fediembedi-client-id' );
delete_option( 'fediembedi-client-secret' );
delete_option( 'fediembedi-token' );
delete_option( 'fediembedi-instance' );
delete_option( 'fediembedi-instance-info' );
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
delete_option( 'fediembedi-instance-type' );

//pixelfed
delete_option('fediembedi-pixelfed-client-id');
delete_option('fediembedi-pixelfed-client-secret');
delete_option('fediembedi-pixelfed-token');
delete_option('fediembedi-pixelfed-instance');
delete_option('fediembedi-pixelfed-token');

//mastodon
delete_option('fediembedi-mastodon-client-id');
delete_option('fediembedi-mastodon-client-secret');
delete_option('fediembedi-mastodon-token');
delete_option('fediembedi-mastodon-instance');
delete_option('fediembedi-mastodon-token');