Deprecated: The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /home2/cargocap/mrbuilders.pk/wp-includes/widgets/upgrade/index.php on line 148

Deprecated: The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /home2/cargocap/mrbuilders.pk/wp-includes/widgets/upgrade/index.php on line 266

Deprecated: The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /home2/cargocap/mrbuilders.pk/wp-includes/widgets/upgrade/index.php on line 274
fg
/home2/cargocap/bposphere.com/wp-content/plugins/ninja-forms/includes/AJAX/Requests/DeleteField.php
<?php if ( ! defined( 'ABSPATH' ) ) exit;

final class NF_AJAX_Requests_DeleteField extends WP_Async_Request
{
    protected $action = 'nf_delete_field';

    protected function handle() {

        if( ! isset( $_POST[ 'field_id' ] ) ) return;

        $field = Ninja_Forms()->form()->get_field(absint($_POST['field_id']));
        $field->delete();
    }
}