is_editable() public method

Checks if an order can be edited, specifically for use on the Edit Order screen.
public is_editable ( ) : boolean
return boolean
示例#1
0
 /**
  * Test: is_editable
  */
 function test_is_editable()
 {
     $object = new WC_Order();
     $object->set_status('pending');
     $this->assertTrue($object->is_editable());
     $object->set_status('processing');
     $this->assertFalse($object->is_editable());
 }