芝麻web文件管理V1.00
编辑当前文件:/home/royashxg/www/wp-content/plugins/fluentformpro/src/Components/Post/Getter.php
inputs(['attributes']); foreach ($customMetas as $index => $field) { $name = Helper::getInputNameFromShortCode(Arr::get($field, 'meta_value', '')); if (!$name) continue; $formField = Arr::get($formFields, $name); if ('file' == Arr::get($formField, 'attributes.type')) { static::maybeDeleteAttachmentIds($name, $formData); if (!Arr::get($formData, $name)) { Arr::forget($customMetas, $index); } } } return $customMetas; } public static function resolveDateFieldFormat($fields, $form) { if (!$fields || !$form) return $fields; $formFields = (new FormProperties($form))->inputs(); foreach ($fields as $index => $field) { $name = Helper::getInputNameFromShortCode(Arr::get($field, 'field_value', '')); if (!$name) continue; $formField = Arr::get($formFields, $name); if ( Arr::get($formField, 'element') === 'input_date' && $format = Arr::get($formField, 'raw.settings.date_format') ) { $fields[$index]['format'] = $format; } } return $fields; } protected static function maybeResolveProcessedFeedDateFormat($rawFields, $processedFields) { foreach ($processedFields as $index => &$field) { $dateFormat = Arr::get($rawFields, $index . '.format'); if ($dateFormat) { $field['format'] = $dateFormat; } } return $processedFields; } }