{"id":4188,"date":"2023-01-31T15:47:03","date_gmt":"2023-01-31T14:47:03","guid":{"rendered":"https:\/\/www.open-user-map.com\/?post_type=ht_kb&#038;p=4188"},"modified":"2025-06-06T10:08:13","modified_gmt":"2025-06-06T08:08:13","slug":"change-or-extend-content-of-each-location-bubble","status":"publish","type":"ht_kb","link":"https:\/\/www.open-user-map.com\/es\/knowledge-base\/change-or-extend-content-of-each-location-bubble\/","title":{"rendered":"Cambiar o ampliar el contenido de cada burbuja de ubicaci\u00f3n"},"content":{"rendered":"<p>Puede utilizar el Gancho&nbsp;<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-amber-color\">oum_locations_bubble_content<\/mark><\/strong>&nbsp;para manipular el contenido de las burbujas de informaci\u00f3n de las ubicaciones.<\/p>\n\n\n\n<p>Inserte el siguiente c\u00f3digo PHP en el functions.php de su tema:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#f6f6f4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\" data-no-translation=\"\" data-no-auto-translation=\"\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#333545;color:#ebebe6\">PHP<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#f6f6f4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><textarea class=\"code-block-pro-copy-button-textarea\" aria-hidden=\"true\" readonly>add_filter(&#8216;oum_location_bubble_content&#8217;, function ( $content, $location ) {\n\n    \/\/ extend or change content\n\n    $content .= &#8216;Post ID: &#8216; . $location[&#8216;post_id&#8217;];\n\n    return $content;\n\n}, 10, 2);<\/textarea><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewbox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dracula-soft\" style=\"background-color: #282A36\" tabindex=\"0\"><code data-no-translation=\"\" data-no-auto-translation=\"\"><span class=\"line\"><span style=\"color: #62E884\">add_filter<\/span><span style=\"color: #F6F6F4\">(<\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">oum_location_bubble_content<\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #F6F6F4\">,<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F286C4\">function<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">(<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">$content,<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">$location<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">)<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">{<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">    <\/span><span style=\"color: #7B7F8B\">\/\/ extend or change content<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #62E884\">    <\/span><span style=\"color: #F6F6F4\">$content<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F286C4\">.=<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">Post ID: <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F286C4\">.<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">$location&#91;<\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">post_id<\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #F6F6F4\">&#93;;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #62E884\">    <\/span><span style=\"color: #F286C4\">return<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">$content;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">},<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #BF9EEE\">10<\/span><span style=\"color: #F6F6F4\">,<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #BF9EEE\">2<\/span><span style=\"color: #F6F6F4\">);<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Para a\u00f1adir un valor de los campos por defecto edite esta l\u00ednea:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers cbp-blur-enabled cbp-unblur-on-hover\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#f6f6f4;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\" data-no-translation=\"\" data-no-auto-translation=\"\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#333545;color:#ebebe6\">PHP<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#f6f6f4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><textarea class=\"code-block-pro-copy-button-textarea\" aria-hidden=\"true\" readonly>add_filter(&#8216;oum_location_bubble_content&#8217;, function ( $content, $location ) {\n\n    \/\/ extend or change content\n\n    $content .= $location[&#8216;post_id&#8217;]; \/\/ use post_id, date, name, address, lat, lng, text, audio\n\n    return $content;\n\n}, 10, 2);\n<\/textarea><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewbox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dracula-soft\" style=\"background-color: #282A36\" tabindex=\"0\"><code data-no-translation=\"\" data-no-auto-translation=\"\"><span class=\"line\"><span style=\"color: #62E884\">add_filter<\/span><span style=\"color: #F6F6F4\">(<\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">oum_location_bubble_content<\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #F6F6F4\">,<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F286C4\">function<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">(<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">$content,<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">$location<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">)<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">{<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">    <\/span><span style=\"color: #7B7F8B\">\/\/ extend or change content<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line cbp-no-blur\"><span style=\"color: #62E884\">    <\/span><span style=\"color: #F6F6F4\">$content<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F286C4\">.=<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">$location&#91;<\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">post_id<\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #F6F6F4\">&#93;;<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #7B7F8B\">\/\/ use post_id, date, name, address, lat, lng, text, audio<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #62E884\">    <\/span><span style=\"color: #F286C4\">return<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">$content;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">},<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #BF9EEE\">10<\/span><span style=\"color: #F6F6F4\">,<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #BF9EEE\">2<\/span><span style=\"color: #F6F6F4\">);<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Para mostrar las im\u00e1genes de una localizaci\u00f3n utilice $location['images']. Tenga en cuenta que las im\u00e1genes se almacenan en forma de matriz:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers cbp-blur-enabled cbp-unblur-on-hover\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#f6f6f4;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\" data-no-translation=\"\" data-no-auto-translation=\"\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#333545;color:#ebebe6\">PHP<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#f6f6f4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><textarea class=\"code-block-pro-copy-button-textarea\" aria-hidden=\"true\" readonly>add_filter(&#8216;oum_location_bubble_content&#8217;, function ( $content, $location ) {\n\n    foreach ( $location[&#8216;images&#8217;] as $image_url ) {\n        $content .= &#8216;&lt;img src=&#8221;&#8216; . $image_url . &#8216;&#8221;>&#8217;;\n    }\n\n    return $content;\n\n}, 10, 2);\n<\/textarea><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewbox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dracula-soft\" style=\"background-color: #282A36\" tabindex=\"0\"><code data-no-translation=\"\" data-no-auto-translation=\"\"><span class=\"line\"><span style=\"color: #62E884\">add_filter<\/span><span style=\"color: #F6F6F4\">(<\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">oum_location_bubble_content<\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #F6F6F4\">,<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F286C4\">function<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">(<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">$content,<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">$location<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">)<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">{<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line cbp-no-blur\"><span style=\"color: #62E884\">    <\/span><span style=\"color: #F286C4\">foreach<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">(<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">$location&#91;<\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">images<\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #F6F6F4\">&#93;<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F286C4\">as<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">$image_url<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">)<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">{<\/span><\/span>\n<span class=\"line cbp-no-blur\"><span style=\"color: #62E884\">        <\/span><span style=\"color: #F6F6F4\">$content<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F286C4\">.=<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">&lt;img src=&quot;<\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F286C4\">.<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">$image_url<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F286C4\">.<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">&quot;&gt;<\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #F6F6F4\">;<\/span><\/span>\n<span class=\"line cbp-no-blur\"><span style=\"color: #62E884\">    <\/span><span style=\"color: #F6F6F4\">}<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #62E884\">    <\/span><span style=\"color: #F286C4\">return<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">$content;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">},<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #BF9EEE\">10<\/span><span style=\"color: #F6F6F4\">,<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #BF9EEE\">2<\/span><span style=\"color: #F6F6F4\">);<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Tambi\u00e9n puede mostrar todas las im\u00e1genes de ubicaci\u00f3n como slider. El siguiente c\u00f3digo devolver\u00e1 las im\u00e1genes en forma de galer\u00eda interactiva:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers cbp-blur-enabled cbp-unblur-on-hover\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#f6f6f4;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\" data-no-translation=\"\" data-no-auto-translation=\"\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#333545;color:#ebebe6\">PHP<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#f6f6f4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><textarea class=\"code-block-pro-copy-button-textarea\" aria-hidden=\"true\" readonly>add_filter(&#8216;oum_location_bubble_content&#8217;, function ( $content, $location ) {\n\n    \/\/ extend or change content\n\n    $content .= oum_get_location_value(&#8216;images&#8217;, $location[&#8216;post_id&#8217;]); \/\/ IMPORTANT: For Open User Map older than v1.4.9 use &#8216;image&#8217; instead of &#8216;images&#8217;\n\n    return $content;\n\n}, 10, 2);\n<\/textarea><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewbox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dracula-soft\" style=\"background-color: #282A36\" tabindex=\"0\"><code data-no-translation=\"\" data-no-auto-translation=\"\"><span class=\"line\"><span style=\"color: #62E884\">add_filter<\/span><span style=\"color: #F6F6F4\">(<\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">oum_location_bubble_content<\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #F6F6F4\">,<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F286C4\">function<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">(<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">$content,<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">$location<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">)<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">{<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">    <\/span><span style=\"color: #7B7F8B\">\/\/ extend or change content<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line cbp-no-blur\"><span style=\"color: #62E884\">    <\/span><span style=\"color: #F6F6F4\">$content<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F286C4\">.=<\/span><span style=\"color: #62E884\"> oum_get_location_value<\/span><span style=\"color: #F6F6F4\">(<\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">images<\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #F6F6F4\">,<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">$location&#91;<\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">post_id<\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #F6F6F4\">&#93;);<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #7B7F8B\">\/\/ IMPORTANT: For Open User Map older than v1.4.9 use &#39;image&#39; instead of &#39;images&#39;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #62E884\">    <\/span><span style=\"color: #F286C4\">return<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">$content;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">},<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #BF9EEE\">10<\/span><span style=\"color: #F6F6F4\">,<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #BF9EEE\">2<\/span><span style=\"color: #F6F6F4\">);<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Y para mostrar un valor de un campo personalizado utilice este c\u00f3digo:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers cbp-blur-enabled cbp-unblur-on-hover\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#f6f6f4;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\" data-no-translation=\"\" data-no-auto-translation=\"\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#333545;color:#ebebe6\">PHP<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#f6f6f4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><textarea class=\"code-block-pro-copy-button-textarea\" aria-hidden=\"true\" readonly>add_filter(&#8216;oum_location_bubble_content&#8217;, function ( $content, $location ) {\n\n    \/\/ extend or change content\n\n    $content .= oum_get_location_value(&#8216;CUSTOM FIELD LABEL&#8217;, $location[&#8216;post_id&#8217;]);\n\n    return $content;\n\n}, 10, 2);\n<\/textarea><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewbox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dracula-soft\" style=\"background-color: #282A36\" tabindex=\"0\"><code data-no-translation=\"\" data-no-auto-translation=\"\"><span class=\"line\"><span style=\"color: #62E884\">add_filter<\/span><span style=\"color: #F6F6F4\">(<\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">oum_location_bubble_content<\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #F6F6F4\">,<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F286C4\">function<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">(<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">$content,<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">$location<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">)<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">{<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">    <\/span><span style=\"color: #7B7F8B\">\/\/ extend or change content<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line cbp-no-blur\"><span style=\"color: #62E884\">    <\/span><span style=\"color: #F6F6F4\">$content<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F286C4\">.=<\/span><span style=\"color: #62E884\"> oum_get_location_value<\/span><span style=\"color: #F6F6F4\">(<\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">CUSTOM FIELD LABEL<\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #F6F6F4\">,<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">$location&#91;<\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">post_id<\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #F6F6F4\">&#93;);<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #62E884\">    <\/span><span style=\"color: #F286C4\">return<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">$content;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">},<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #BF9EEE\">10<\/span><span style=\"color: #F6F6F4\">,<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #BF9EEE\">2<\/span><span style=\"color: #F6F6F4\">);<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>Cambia <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-amber-color\">ETIQUETA DE CAMPO PERSONALIZADA<\/mark> a la <strong>nombre<\/strong> de su campo personalizado.<\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Ubicaci\u00f3n de las banderas\/informes<\/h2>\n\n\n\n<p>A continuaci\u00f3n le mostramos c\u00f3mo puede a\u00f1adir un simple bot\u00f3n de Bandera (Eliminar ubicaci\u00f3n) que env\u00ede un correo electr\u00f3nico con el ID de ubicaci\u00f3n correspondiente a su bandeja de entrada:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers cbp-blur-enabled cbp-unblur-on-hover\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#f6f6f4;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\" data-no-translation=\"\" data-no-auto-translation=\"\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#333545;color:#ebebe6\">PHP<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#f6f6f4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><textarea class=\"code-block-pro-copy-button-textarea\" aria-hidden=\"true\" readonly>add_filter(&#8216;oum_location_bubble_content&#8217;, function ( $content, $location ) {\n\n    \/\/ extend or change content\n\n    $sendto = &#8216;your@emailaddress.com&#8217;;\n    $subject = &#8216;Please remove the Location with ID &#8216; . $location[&#8216;post_id&#8217;];\n    \n    $content .= &#8216;&lt;div class=&#8221;oum_location_text&#8221;>&lt;a href=&#8221;mailto:&#8217; . $sendto . &#8216;?subject=&#8217; . urlencode($subject) . &#8216;&#8221;>Flag Location&lt;\/a>&lt;\/div>&#8217;;\n\n    return $content;\n\n}, 10, 2);\n<\/textarea><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewbox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dracula-soft\" style=\"background-color: #282A36\" tabindex=\"0\"><code data-no-translation=\"\" data-no-auto-translation=\"\"><span class=\"line\"><span style=\"color: #62E884\">add_filter<\/span><span style=\"color: #F6F6F4\">(<\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">oum_location_bubble_content<\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #F6F6F4\">,<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F286C4\">function<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">(<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">$content,<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">$location<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">)<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">{<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">    <\/span><span style=\"color: #7B7F8B\">\/\/ extend or change content<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line cbp-no-blur\"><span style=\"color: #62E884\">    <\/span><span style=\"color: #F6F6F4\">$sendto<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F286C4\">=<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">your@emailaddress.com<\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #F6F6F4\">;<\/span><\/span>\n<span class=\"line cbp-no-blur\"><span style=\"color: #62E884\">    <\/span><span style=\"color: #F6F6F4\">$subject<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F286C4\">=<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">Please remove the Location with ID <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F286C4\">.<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">$location&#91;<\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">post_id<\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #F6F6F4\">&#93;;<\/span><\/span>\n<span class=\"line cbp-no-blur\"><span style=\"color: #62E884\">    <\/span><\/span>\n<span class=\"line cbp-no-blur\"><span style=\"color: #62E884\">    <\/span><span style=\"color: #F6F6F4\">$content<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F286C4\">.=<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">&lt;div class=&quot;oum_location_text&quot;&gt;&lt;a href=&quot;mailto:<\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F286C4\">.<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">$sendto<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F286C4\">.<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">?subject=<\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F286C4\">.<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #97E1F1\">urlencode<\/span><span style=\"color: #F6F6F4\">($subject)<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F286C4\">.<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">&quot;&gt;Flag Location&lt;\/a&gt;&lt;\/div&gt;<\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #F6F6F4\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #62E884\">    <\/span><span style=\"color: #F286C4\">return<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">$content;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">},<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #BF9EEE\">10<\/span><span style=\"color: #F6F6F4\">,<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #BF9EEE\">2<\/span><span style=\"color: #F6F6F4\">);<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>Pista:<\/strong> Para eliminar el contenido existente de la burbuja a\u00f1ada esta l\u00ednea al principio:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers cbp-blur-enabled cbp-unblur-on-hover\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#f6f6f4;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\" data-no-translation=\"\" data-no-auto-translation=\"\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#333545;color:#ebebe6\">PHP<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#f6f6f4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><textarea class=\"code-block-pro-copy-button-textarea\" aria-hidden=\"true\" readonly>add_filter(&#8216;oum_location_bubble_content&#8217;, function ( $content, $location ) {\n\n    \/\/ extend or change content\n    \n    $content = &#8221;;\n\n    $content .= &#8216;Post ID: &#8216; . $location[&#8216;post_id&#8217;];\n\n    return $content;\n\n}, 10, 2);<\/textarea><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewbox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dracula-soft\" style=\"background-color: #282A36\" tabindex=\"0\"><code data-no-translation=\"\" data-no-auto-translation=\"\"><span class=\"line\"><span style=\"color: #62E884\">add_filter<\/span><span style=\"color: #F6F6F4\">(<\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">oum_location_bubble_content<\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #F6F6F4\">,<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F286C4\">function<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">(<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">$content,<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">$location<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">)<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">{<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">    <\/span><span style=\"color: #7B7F8B\">\/\/ extend or change content<\/span><\/span>\n<span class=\"line\"><span style=\"color: #62E884\">    <\/span><\/span>\n<span class=\"line cbp-no-blur\"><span style=\"color: #62E884\">    <\/span><span style=\"color: #F6F6F4\">$content<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F286C4\">=<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #DEE492\">&#39;&#39;<\/span><span style=\"color: #F6F6F4\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #62E884\">    <\/span><span style=\"color: #F6F6F4\">$content<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F286C4\">.=<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">Post ID: <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F286C4\">.<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">$location&#91;<\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">post_id<\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #F6F6F4\">&#93;;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #62E884\">    <\/span><span style=\"color: #F286C4\">return<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #F6F6F4\">$content;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">},<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #BF9EEE\">10<\/span><span style=\"color: #F6F6F4\">,<\/span><span style=\"color: #62E884\"> <\/span><span style=\"color: #BF9EEE\">2<\/span><span style=\"color: #F6F6F4\">);<\/span><\/span><\/code><\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>Puedes utilizar el hook oum_locations_bubble_content para manipular el contenido de las burbujas de informaci\u00f3n de las localizaciones. Inserta el siguiente c\u00f3digo PHP en el functions.php de tu tema: Para a\u00f1adir un valor de los campos por defecto edite esta l\u00ednea: Para mostrar las im\u00e1genes de una localizaci\u00f3n utilice $location['images']. Preste atenci\u00f3n a que las im\u00e1genes se almacenan en forma de ... <a href=\"https:\/\/www.open-user-map.com\/es\/knowledge-base\/change-or-extend-content-of-each-location-bubble\/\">Contin\u00faa en<\/a><\/p>","protected":false},"author":50,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[25],"ht-kb-tag":[27,122,26,124,123],"class_list":["post-4188","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-customization","ht_kb_tag-custom-fields","ht_kb_tag-flag","ht_kb_tag-hook","ht_kb_tag-remove","ht_kb_tag-report"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Change or extend content of each location bubble - Open User Map WordPress Plugin<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.open-user-map.com\/es\/knowledge-base\/change-or-extend-content-of-each-location-bubble\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Change or extend content of each location bubble - Open User Map WordPress Plugin\" \/>\n<meta property=\"og:description\" content=\"You can use the Hook&nbsp;oum_locations_bubble_content&nbsp;to manipulate the content of the info bubbles of locations. Insert the following PHP code in the functions.php of your theme: To add a value from default fields edit this line: To display the images of a location use $location[&#8216;images&#8217;]. Pay attention that images are stored in the form of an &hellip; Continued\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.open-user-map.com\/es\/knowledge-base\/change-or-extend-content-of-each-location-bubble\/\" \/>\n<meta property=\"og:site_name\" content=\"Open User Map WordPress Plugin\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-06T08:08:13+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"https:\/\/www.open-user-map.com\/knowledge-base\/change-or-extend-content-of-each-location-bubble\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.open-user-map.com\/knowledge-base\/change-or-extend-content-of-each-location-bubble\/\"},\"author\":{\"name\":\"Daniel Sch\u00f6nherr\",\"@id\":\"https:\/\/www.open-user-map.com\/#\/schema\/person\/d9c8cbe470ae2702b6de61e0f73a7402\"},\"headline\":\"Change or extend content of each location bubble\",\"datePublished\":\"2023-01-31T14:47:03+00:00\",\"dateModified\":\"2025-06-06T08:08:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.open-user-map.com\/knowledge-base\/change-or-extend-content-of-each-location-bubble\/\"},\"wordCount\":389,\"publisher\":{\"@id\":\"https:\/\/www.open-user-map.com\/#organization\"},\"inLanguage\":\"es\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.open-user-map.com\/knowledge-base\/change-or-extend-content-of-each-location-bubble\/\",\"url\":\"https:\/\/www.open-user-map.com\/knowledge-base\/change-or-extend-content-of-each-location-bubble\/\",\"name\":\"Change or extend content of each location bubble - Open User Map WordPress Plugin\",\"isPartOf\":{\"@id\":\"https:\/\/www.open-user-map.com\/#website\"},\"datePublished\":\"2023-01-31T14:47:03+00:00\",\"dateModified\":\"2025-06-06T08:08:13+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.open-user-map.com\/knowledge-base\/change-or-extend-content-of-each-location-bubble\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.open-user-map.com\/knowledge-base\/change-or-extend-content-of-each-location-bubble\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.open-user-map.com\/knowledge-base\/change-or-extend-content-of-each-location-bubble\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.open-user-map.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Change or extend content of each location bubble\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.open-user-map.com\/#website\",\"url\":\"https:\/\/www.open-user-map.com\/\",\"name\":\"Open User Map\",\"description\":\"WordPress Map Plugin\",\"publisher\":{\"@id\":\"https:\/\/www.open-user-map.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.open-user-map.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"es\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.open-user-map.com\/#organization\",\"name\":\"Open User Map\",\"url\":\"https:\/\/www.open-user-map.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/www.open-user-map.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.open-user-map.com\/wp-content\/uploads\/2023\/09\/icon-256x256-1.png\",\"contentUrl\":\"https:\/\/www.open-user-map.com\/wp-content\/uploads\/2023\/09\/icon-256x256-1.png\",\"width\":256,\"height\":256,\"caption\":\"Open User Map\"},\"image\":{\"@id\":\"https:\/\/www.open-user-map.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.open-user-map.com\/#\/schema\/person\/d9c8cbe470ae2702b6de61e0f73a7402\",\"name\":\"Daniel Sch\u00f6nherr\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Cambiar o ampliar el contenido de cada burbuja de ubicaci\u00f3n - Open User Map WordPress Plugin","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.open-user-map.com\/es\/knowledge-base\/change-or-extend-content-of-each-location-bubble\/","og_locale":"es_ES","og_type":"article","og_title":"Change or extend content of each location bubble - Open User Map WordPress Plugin","og_description":"You can use the Hook&nbsp;oum_locations_bubble_content&nbsp;to manipulate the content of the info bubbles of locations. Insert the following PHP code in the functions.php of your theme: To add a value from default fields edit this line: To display the images of a location use $location[&#8216;images&#8217;]. Pay attention that images are stored in the form of an &hellip; Continued","og_url":"https:\/\/www.open-user-map.com\/es\/knowledge-base\/change-or-extend-content-of-each-location-bubble\/","og_site_name":"Open User Map WordPress Plugin","article_modified_time":"2025-06-06T08:08:13+00:00","twitter_card":"summary_large_image","twitter_misc":{"Tiempo de lectura":"3 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/www.open-user-map.com\/knowledge-base\/change-or-extend-content-of-each-location-bubble\/#article","isPartOf":{"@id":"https:\/\/www.open-user-map.com\/knowledge-base\/change-or-extend-content-of-each-location-bubble\/"},"author":{"name":"Daniel Sch\u00f6nherr","@id":"https:\/\/www.open-user-map.com\/#\/schema\/person\/d9c8cbe470ae2702b6de61e0f73a7402"},"headline":"Change or extend content of each location bubble","datePublished":"2023-01-31T14:47:03+00:00","dateModified":"2025-06-06T08:08:13+00:00","mainEntityOfPage":{"@id":"https:\/\/www.open-user-map.com\/knowledge-base\/change-or-extend-content-of-each-location-bubble\/"},"wordCount":389,"publisher":{"@id":"https:\/\/www.open-user-map.com\/#organization"},"inLanguage":"es"},{"@type":"WebPage","@id":"https:\/\/www.open-user-map.com\/knowledge-base\/change-or-extend-content-of-each-location-bubble\/","url":"https:\/\/www.open-user-map.com\/knowledge-base\/change-or-extend-content-of-each-location-bubble\/","name":"Cambiar o ampliar el contenido de cada burbuja de ubicaci\u00f3n - Open User Map WordPress Plugin","isPartOf":{"@id":"https:\/\/www.open-user-map.com\/#website"},"datePublished":"2023-01-31T14:47:03+00:00","dateModified":"2025-06-06T08:08:13+00:00","breadcrumb":{"@id":"https:\/\/www.open-user-map.com\/knowledge-base\/change-or-extend-content-of-each-location-bubble\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.open-user-map.com\/knowledge-base\/change-or-extend-content-of-each-location-bubble\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.open-user-map.com\/knowledge-base\/change-or-extend-content-of-each-location-bubble\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.open-user-map.com\/"},{"@type":"ListItem","position":2,"name":"Change or extend content of each location bubble"}]},{"@type":"WebSite","@id":"https:\/\/www.open-user-map.com\/#website","url":"https:\/\/www.open-user-map.com\/","name":"Open User Map","description":"Plugin de mapas de WordPress","publisher":{"@id":"https:\/\/www.open-user-map.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.open-user-map.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es"},{"@type":"Organization","@id":"https:\/\/www.open-user-map.com\/#organization","name":"Open User Map","url":"https:\/\/www.open-user-map.com\/","logo":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/www.open-user-map.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.open-user-map.com\/wp-content\/uploads\/2023\/09\/icon-256x256-1.png","contentUrl":"https:\/\/www.open-user-map.com\/wp-content\/uploads\/2023\/09\/icon-256x256-1.png","width":256,"height":256,"caption":"Open User Map"},"image":{"@id":"https:\/\/www.open-user-map.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.open-user-map.com\/#\/schema\/person\/d9c8cbe470ae2702b6de61e0f73a7402","name":"Daniel Sch\u00f6nherr"}]}},"_links":{"self":[{"href":"https:\/\/www.open-user-map.com\/es\/wp-json\/wp\/v2\/ht-kb\/4188","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.open-user-map.com\/es\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.open-user-map.com\/es\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.open-user-map.com\/es\/wp-json\/wp\/v2\/users\/50"}],"replies":[{"embeddable":true,"href":"https:\/\/www.open-user-map.com\/es\/wp-json\/wp\/v2\/comments?post=4188"}],"version-history":[{"count":7,"href":"https:\/\/www.open-user-map.com\/es\/wp-json\/wp\/v2\/ht-kb\/4188\/revisions"}],"predecessor-version":[{"id":6201,"href":"https:\/\/www.open-user-map.com\/es\/wp-json\/wp\/v2\/ht-kb\/4188\/revisions\/6201"}],"wp:attachment":[{"href":"https:\/\/www.open-user-map.com\/es\/wp-json\/wp\/v2\/media?parent=4188"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.open-user-map.com\/es\/wp-json\/wp\/v2\/ht-kb-category?post=4188"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.open-user-map.com\/es\/wp-json\/wp\/v2\/ht-kb-tag?post=4188"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}