Function Reference: geodir_changes_in_package_table
Summary
Its checks and adds the new fields in price package table during plugin load.
Global Values
- $wpdb
- (object) (required) WordPress Database object.
- Default: None
- $plugin_prefix
- (string) (required) Geodirectory plugin table prefix.
- Default: None
Change Log
Since: 1.0.0
1.3.2 Modified to check & add field has_upgrades in price package table.
Source Code
function geodir_changes_in_package_table() { if (is_admin()) { global $wpdb, $plugin_prefix; // add fields for new payment system if (!get_option('geodir_changes_in_invoice_table_1_2_6')) { // remove google wallet payment method if (get_option('payment_method_googlechkout')) { delete_option('payment_method_googlechkout'); } update_option('geodir_changes_in_invoice_table_1_2_6', '1'); } } }