Loading functions.php +6 −4 Original line number Diff line number Diff line Loading @@ -33,10 +33,12 @@ function fscoli_mime_types($mime_types){ } add_filter('upload_mimes', 'fscoli_mime_types', 1, 1); // Add support to embed umap (umap.openstreetmap.de) // See https://wordpress.org/support/article/embeds/#adding-support-for-a-non-oembed-site // For more details on the parameters this function is called with, see also // https://developer.wordpress.org/reference/classes/wp_embed/get_embed_handler_html/ /* * Add support to embed umap (umap.openstreetmap.de) * See https://wordpress.org/support/article/embeds/#adding-support-for-a-non-oembed-site * For more details on the parameters this function is called with, see also * https://developer.wordpress.org/reference/classes/wp_embed/get_embed_handler_html/ */ function fscoli_embed_umap($regex_matches, $embed_attrs, $url, $raw_embed_attrs) { $width = esc_attr($embed_attrs['width'].'px'); $height = esc_attr($embed_attrs['height'].'px'); Loading Loading
functions.php +6 −4 Original line number Diff line number Diff line Loading @@ -33,10 +33,12 @@ function fscoli_mime_types($mime_types){ } add_filter('upload_mimes', 'fscoli_mime_types', 1, 1); // Add support to embed umap (umap.openstreetmap.de) // See https://wordpress.org/support/article/embeds/#adding-support-for-a-non-oembed-site // For more details on the parameters this function is called with, see also // https://developer.wordpress.org/reference/classes/wp_embed/get_embed_handler_html/ /* * Add support to embed umap (umap.openstreetmap.de) * See https://wordpress.org/support/article/embeds/#adding-support-for-a-non-oembed-site * For more details on the parameters this function is called with, see also * https://developer.wordpress.org/reference/classes/wp_embed/get_embed_handler_html/ */ function fscoli_embed_umap($regex_matches, $embed_attrs, $url, $raw_embed_attrs) { $width = esc_attr($embed_attrs['width'].'px'); $height = esc_attr($embed_attrs['height'].'px'); Loading