simple-author-box
Last commit date
assets
1 year ago
inc
1 year ago
template
1 year ago
wf-flyout
3 years ago
block.json
5 years ago
license.txt
7 years ago
readme.txt
1 year ago
simple-author-box.php
1 year ago
uninstall.php
4 years ago
uninstall.php
70 lines
| 1 | <?php |
| 2 | |
| 3 | /*---------------------------------------------------------------------------------------------------------- |
| 4 | Uninstall Simple Author Box plugin - deletes plugin data in database |
| 5 | -----------------------------------------------------------------------------------------------------------*/ |
| 6 | |
| 7 | // Exit if accessed directly |
| 8 | if (!defined('ABSPATH')) { |
| 9 | exit; |
| 10 | } |
| 11 | |
| 12 | if (!defined('WP_UNINSTALL_PLUGIN')) { |
| 13 | exit(); |
| 14 | } |
| 15 | |
| 16 | $sabox_options = array( |
| 17 | 'sab_autoinsert' => '0', |
| 18 | 'sab_show_latest_posts' => '0', |
| 19 | 'sab_show_custom_html' => '0', |
| 20 | 'sab_no_description' => '0', |
| 21 | 'sab_email' => '0', |
| 22 | 'sab_link_target' => '0', |
| 23 | 'sab_hide_socials' => '0', |
| 24 | 'sab_hide_on_archive' => '0', |
| 25 | 'sab_box_border_width' => '1', |
| 26 | 'sab_avatar_style' => '0', |
| 27 | 'sab_avatar_size' => '100', |
| 28 | 'sab_avatar_hover' => '0', |
| 29 | 'sab_web' => '0', |
| 30 | 'sab_web_target' => '0', |
| 31 | 'sab_web_rel' => '0', |
| 32 | 'sab_web_position' => '0', |
| 33 | 'sab_colored' => '0', |
| 34 | 'sab_icons_style' => '0', |
| 35 | 'sab_social_hover' => '0', |
| 36 | 'sab_box_long_shadow' => '0', |
| 37 | 'sab_box_thin_border' => '0', |
| 38 | 'sab_box_author_color' => '', |
| 39 | 'sab_box_web_color' => '', |
| 40 | 'sab_box_border' => '', |
| 41 | 'sab_box_icons_back' => '', |
| 42 | 'sab_box_author_back' => '', |
| 43 | 'sab_box_author_p_color' => '', |
| 44 | 'sab_box_author_a_color' => '', |
| 45 | 'sab_box_icons_color' => '', |
| 46 | 'sab_footer_inline_style' => '', |
| 47 | 'sab_box_margin_top' => '0', |
| 48 | 'sab_box_margin_bottom' => '0', |
| 49 | 'sab_box_padding_top_bottom' => '0', |
| 50 | 'sab_box_padding_left_right' => '0', |
| 51 | 'sab_box_subset' => 'none', |
| 52 | 'sab_box_name_font' => 'None', |
| 53 | 'sab_box_web_font' => 'None', |
| 54 | 'sab_box_desc_font' => 'None', |
| 55 | 'sab_box_name_size' => '18', |
| 56 | 'sab_box_web_size' => '14', |
| 57 | 'sab_box_desc_size' => '14', |
| 58 | 'sab_box_icon_size' => '18', |
| 59 | 'sab_desc_style' => '0', |
| 60 | 'sab_whitelabel' => 0, |
| 61 | 'sab_box_job_font' => '', |
| 62 | 'sab_box_job_font_size' => '', |
| 63 | 'saboxplugin_options' => '', |
| 64 | 'sab_pointers' => '' |
| 65 | ); |
| 66 | |
| 67 | foreach($sabox_options as $sabox_option => $value){ |
| 68 | delete_option($sabox_option); |
| 69 | } |
| 70 |