delete-payment-action.php
26 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | namespace JFB_Modules\Gateways\Meta_Boxes\Actions; |
| 5 | |
| 6 | use Jet_Form_Builder\Admin\Single_Pages\Actions\Delete_Page_Action; |
| 7 | use JFB_Modules\Gateways\Rest_Api\Delete_Payment_Endpoint; |
| 8 | |
| 9 | // If this file is called directly, abort. |
| 10 | if ( ! defined( 'WPINC' ) ) { |
| 11 | die; |
| 12 | } |
| 13 | |
| 14 | class Delete_Payment_Action extends Delete_Page_Action { |
| 15 | |
| 16 | public function get_rest_url(): string { |
| 17 | return Delete_Payment_Endpoint::dynamic_rest_url( |
| 18 | array( 'id' => jet_fb_current_page()->get_id() ) |
| 19 | ); |
| 20 | } |
| 21 | |
| 22 | public function get_rest_methods(): string { |
| 23 | return Delete_Payment_Endpoint::get_methods(); |
| 24 | } |
| 25 | } |
| 26 |