This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class WPAS_Model_Order_Meta extends WPAS_Model { | |
static $primary_key = 'order_id'; | |
static function set_as_refunded( $order_id ) { | |
$data = array( 'is_refunded' => 1 ); | |
$where = array( 'order_id' => $order_id ); | |
self::update( $data, $where ); | |
} |
OlderNewer