Corrugated Studio Helpers

error_log(‘[CORRUGATED STUDIO] LOAD’); $corrugated_studio = null; function corrugatedStudioContactForm($attrs = [], $content = null, $tag = ”) { error_log(‘[corrugatedStudioContactForm] START’); global $corrugated_studio; if(!$corrugated_studio) return; $attrs = array_change_key_case((array) $attrs, CASE_LOWER); $paperform_id = null; if(!isset($attrs[‘paperform_id’])) return; $paperform_id = $attrs[‘paperform_id’]; error_log(‘[corrugatedStudioContactForm] paperform_id: ‘ .…Continue reading

get all entries from a form

/** Funktion zur Ermittlung aller Einträge in einem Formidable Form. Optional kann mit einem $searchTerm gefiltert werden. */ function getFormidableDataFromForm($formId, $searchTerm) { // API-Schlüssel abrufen $frmApiKey = getFormidableApiKey(); // Die URL für die Anfrage zusammenstellen $searchstring = ”; if (!empty($searchTerm))…Continue reading

Allow SVG Files Upload

/** * Allow SVG uploads for administrator users. * * @param array $upload_mimes Allowed mime types. * * @return mixed */ add_filter( ‘upload_mimes’, function ( $upload_mimes ) { // By default, only administrator users are allowed to add SVGs. //…Continue reading