/var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/give/src/Onboarding/Routes
NameSizeModeActions
AddonsRoute.php30440644editdlrm
CurrencyRoute.php34040644editdlrm
FeaturesRoute.php41050644editdlrm
FormRoute.php19510644editdlrm
LocationRoute.php23460644editdlrm
SettingsRoute.php38810644editdlrm
Edit: /var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/give/src/Onboarding/Routes/FormRoute.php (1951B)
formRepository = $formRepository; } /** * @since 2.8.0 * * @param WP_REST_Request $request * * @return array * */ public function handleRequest(WP_REST_Request $request) { return [ 'formID' => $this->formRepository->getOrMake(), ]; } /** * @inheritDoc */ public function registerRoute() { register_rest_route( 'give-api/v2', $this->endpoint, [ [ 'methods' => 'POST', 'callback' => [$this, 'handleRequest'], 'permission_callback' => function () { return current_user_can('manage_options'); }, ], 'schema' => [$this, 'getSchema'], ] ); } /** * @since 2.8.0 * @return array * */ public function getSchema() { return [ // This tells the spec of JSON Schema we are using which is draft 4. '$schema' => 'http://json-schema.org/draft-04/schema#', // The title property marks the identity of the resource. 'title' => 'onboarding', 'type' => 'object', // In JSON Schema you can specify object properties in the properties attribute. 'properties' => [ // ... ], ]; } }