WordPress.org

Ready to get started?Download WordPress

Forums

scbFramework
scbFrameWork delete table and options (2 posts)

  1. 4apz
    Member
    Posted 1 year ago #

    Hi,

    I'm a beginner developer and just started with wordpress plugin development.

    I use scb Framewoks to make my live a little bit easyer..

    I've created a new table and optiop using:

    scb_init( 'my_plugin_init' );
    
    function my_plugin_init() {
    	new scbTable( 'example', __FILE__, "
    		example_id int(20),
    		example varchar(100),
    		PRIMARY KEY  (example_id)
    	");
    $defaults = array(
        'color' => 'orange',
        'size' => 'large',
        'version' => '1.5'
    );
    $options = new scbOptions('apz_options', __FILE__, $defaults);
    }

    When I'm uninstalling the plugin, the table and options didn't deleted.
    What should I do to remove it?

    I use r53 of scbFramework.

    http://wordpress.org/extend/plugins/scb-framework/

  2. prionkor
    Member
    Posted 1 year ago #

    The table and option will be deleted when you delete (not uninstall) the plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic