ey => $src_url ) { // Skip if the src doesn't start with the placeholder, as there's nothing to replace. if ( ! str_starts_with( $src_url, $placeholder ) ) { continue; } $src_file = str_replace( $placeholder, '', $src_url ); $src[ $src_key ] = get_theme_file_uri( $src_file ); } return $src; } /** * Converts all first dimension keys into kebab-case. * * @since 6.4.0 * * @param array $data The array to process. * @return array Data with first dimension keys converted into kebab-case. */ private static function to_kebab_case( array $data ) { foreach ( $data as $key => $value ) { $kebab_case = _wp_to_kebab_case( $key ); $data[ $kebab_case ] = $value; if ( $kebab_case !== $key ) { unset( $data[ $key ] ); } } return $data; } } {"id":35,"date":"2021-04-08T07:17:50","date_gmt":"2021-04-08T07:17:50","guid":{"rendered":"http:\/\/www.scheidemantel.gmbh\/?page_id=35"},"modified":"2021-10-11T12:37:24","modified_gmt":"2021-10-11T12:37:24","slug":"kontakt","status":"publish","type":"page","link":"https:\/\/www.scheidemantel.gmbh\/kontakt\/","title":{"rendered":"Kontakt"},"content":{"rendered":"
Scheidemantel GmbH<\/strong><\/h6>\n

\u00a0<\/p>\n

Waldstra\u00dfe 5
64753 Brombachtal<\/p>\n

Tel.: +49 6063 8267806
Fax: +49 6063 8267807
E-Mail: info@scheidemantel.gmbh<\/p>\n

\u00a0<\/h2>\n\n\n