formmeta = $this->table_name = $wpdb->prefix . 'give_formmeta'; $this->primary_key = 'meta_id'; $this->version = '1.0'; parent::__construct(); } /** * Get table columns and data types. * * @access public * @since 2.0 * * @return array Columns and formats. */ public function get_columns() { return array( 'meta_id' => '%d', 'form_id' => '%d', 'meta_key' => '%s', 'meta_value' => '%s', ); } /** * check if custom meta table enabled or not. * * @since 2.0 * @access protected * @return bool */ protected function is_custom_meta_table_active() { return give_has_upgrade_completed( 'v20_move_metadata_into_new_table' ); } }