PluginProbe
JetFormBuilder — Dynamic Blocks Form Builder / 3.6.5.4
JetFormBuilder — Dynamic Blocks Form Builder v3.6.5.4
3.6.6.1 3.6.6 3.6.5.4 3.6.5.3 3.6.5.2 3.6.5.1 3.6.5 3.6.4.2 3.6.4.1 3.6.4 3.6.3.1 3.6.3 3.6.2.2 3.6.2.1 3.6.2 3.6.1.1 3.6.1 3.6.0.1 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 All 134 releases
jetformbuilder / includes / admin / single-pages / actions / delete-page-action.php

delete-page-action.php in JetFormBuilder — Dynamic Blocks Form Builder 3.6.5.4, at includes/admin/single-pages/actions/delete-page-action.php

41 lines 831 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3
4 namespace Jet_Form_Builder\Admin\Single_Pages\Actions;
5
6 use Jet_Form_Builder\Admin\Buttons\Base_Vui_Button;
7
8 // If this file is called directly, abort.
9 if ( ! defined( 'WPINC' ) ) {
10 die;
11 }
12
13 abstract class Delete_Page_Action extends Base_Rest_Page_Action {
14
15 public function get_slug(): string {
16 return 'delete';
17 }
18
19 public function get_position(): string {
20 return self::PRIMARY;
21 }
22
23 public function get_payload(): array {
24 return array(
25 'redirect' => jet_fb_current_page()->get_parent()->get_url(),
26 );
27 }
28
29 /**
30 * @return Base_Vui_Button
31 */
32 public function get_button(): Base_Vui_Button {
33 $button = parent::get_button();
34 $button->set_label( __( 'Delete', 'jet-form-builder' ) );
35 $button->set_size( $button::SIZE_MINI_X2 );
36 $button->set_style( $button::STYLE_ACCENT_ERROR );
37
38 return $button;
39 }
40 }
41