$10 GRAYBYTE WORDPRESS FILE MANAGER $18

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.157
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/bravrvjk/itiministry.org/wp-content/plugins/give/src/FormBuilder/Routes/

HOME
Current File : /home/bravrvjk/itiministry.org/wp-content/plugins/give/src/FormBuilder/Routes//EditFormRoute.php
<?php

namespace Give\FormBuilder\Routes;

use Give\FormBuilder\FormBuilderRouteBuilder;
use Give\Helpers\Form\Utils;

/**
 * Route to edit an existing form
 */
class EditFormRoute
{
    /**
     * @since 3.22.0 Add locale support
     * @since 3.0.3 Use isV3Form() method instead of 'post_content' to check if the form is built with Visual Builder
     * @since 3.0.0
     *
     * @return void
     */
    public function __invoke()
    {
        if (isset($_GET['post'], $_GET['action']) && 'edit' === $_GET['action']) {
            $locale = $_GET['locale'] ?? '';
            // This conditional will be also triggered by WP edit bulk action
            // WP sends an array of IDs so if that is the case here, we can skip this
            if ( ! is_array($_GET['post'])) {
                $post = get_post(abs($_GET['post']));
                if ('give_forms' === $post->post_type && Utils::isV3Form($post->ID)) {
                    wp_redirect(FormBuilderRouteBuilder::makeEditFormRoute($post->ID, $locale)->getUrl());
                    exit();
                }
            }
        }
    }
}


Current_dir [ WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
8 Apr 2026 3.49 AM
bravrvjk / bravrvjk
0755
CreateFormRoute.php
2.106 KB
25 Feb 2026 10.24 PM
bravrvjk / bravrvjk
0644
EditFormRoute.php
1.079 KB
27 Feb 2025 3.53 AM
bravrvjk / bravrvjk
0644
RegisterFormBuilderPageRoute.php
9.152 KB
25 Feb 2026 10.24 PM
bravrvjk / bravrvjk
0644
RegisterFormBuilderRestRoutes.php
2.782 KB
28 Jan 2026 8.00 PM
bravrvjk / bravrvjk
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF