Give_Helper_Form::delete_form PHP Méthode

delete_form() public static méthode

Delete a donation form.
Since: 1.0
public static delete_form ( integer $form_id )
$form_id integer ID of the donation form to delete.
    public static function delete_form($form_id)
    {
        // Delete the post
        wp_delete_post($form_id, true);
    }

Usage Example

 /**
  * Tear it Down
  */
 public function tearDown()
 {
     parent::tearDown();
     Give_Helper_Form::delete_form($this->_simple_form->ID);
     Give_Helper_Form::delete_form($this->_multi_form->ID);
 }