<?php
function clear_cache_on_post_update($post_id) {
// Check if WP Rocket's function exists
if (function_exists('rocket_clean_post')) {
rocket_clean_post($post_id);
}
}
add_action('save_post', 'clear_cache_on_post_update');
import requests
def obtener_latitud_longitud(address):
# Construir la URL de la API de OpenStreetMap
url = f"https://nominatim.openstreetmap.org/search.php?q={address}&format=jsonv2"
# Realizar la solicitud GET a la API de OpenStreetMap
response = requests.get(url)
# Verificar si la solicitud fue exitosa
if response.status_code == 200:
# Analizar la respuesta JSON
data = response.json()
if data:
# Extraer la latitud y longitud de los
pip install --force-reinstall --no-cache-dir pyside6
<?php
function customize_admin_menu() {
// Always hide "Posts"
remove_menu_page('edit.php');
// Conditionally hide "member-stories" for specific blog IDs
$current_blog_id = get_current_blog_id();
if ($current_blog_id == 14 || $current_blog_id == 15) {
remove_menu_page('edit.php?post_type=member-stories');
}
}
add_action('admin_menu', 'customize_admin_menu');
inicio{
"host":"A89B91EA79EC7FEA71C1AAEB69CF",
"porta":"110A7BFE4B3C"
}fim
inicio{
"host":"A09786E177EF7DEC4C191F62E243",
"porta":"DF54C5A0B4A3"
}fim
### Stub APIs for Development
1. Install the IntelliJ plugin: https://blog.jetbrains.com/idea/2024/04/the-wiremock-plugin-for-intellij-idea-is-here/
2. Create a Scratch JSON file with the following content as example:
```
{
"mappings": [
{
"request": {
"method": "GET",
"urlPathPattern": "/api/echo/(.*)"
},
"response": {
"status": 200,
"jsonBody": {
"echo": "{{request.path.[2]}}"
},
"transformers": ["response-templa
jQuery('<span class="designation-comma">,</span>').insertBefore('.team-member .node__title .field--name-title .field--name-designation')
.designation-comma {
margin-left: -5px;
}
.team-member .field--name-title .field--name-designation {
margin-left: -1px;
}
wp search-replace "//www.foreverblueshirts.com" "//staging.foreverblueshirts.com" --all-tables --report-changed-only --dry-run
wp search-replace "//mmalinkerstg.wpengine.com" "//staging.mmalinker.com" --all-tables --report-changed-only --dry-run
wp search-replace "//mmalinkerstg.wpenginepowered.com" "//staging.mmalinker.com" --all-tables --report-changed-only --dry-run
inicio{
"host":"9584F97BCD47200956EA44410461CE",
"porta":"9A9382E77CEB"
}fim
<mvt:assign name="l.settings:basketcontents" value="l.settings:basket:groups" />
<mvt:assign name="l.settings:ttl_automatically_updated_items_in_cart" value="0" />
<mvt:foreach iterator="group" array="basketcontents">
<mvt:comment>Load product as it is right now, Runtime means only Active products</mvt:comment>
<mvt:do name="l.loadedProductOK" file="g.Module_Library_DB" value="Runtime_Product_Load_Code( l.settings:group:code, l.settings:group:current_product_values )" />
<mv
https://outdoorlegacygear.com/
https://woodwudy.com/
With photoswipe:
https://melodymusicshop.com/
En los sitios de JorgeRoman se corre de esta manera.
Hacer un npm run build al proyecto en local
```
npm run build
```
Zipear el proyecto y subirlo dentro de la carpeta nodejsapp/
Entrar con putty al proyecto
<?php
$link = get_sub_field( 'link' );
if ( $link ) :
$link_url = $link['url'];
$link_title = $link['title'];
$link_target = $link['target'] ? $link['target'] : '_self';
?>
<a href="<?php echo esc_url( $link_url ); ?>" target="<?php echo esc_attr( $link_target ); ?>"><span><?php echo esc_attr( $link_title ); ?></span></a>
<?php endif; ?>
https://shop.petlife.com/
https://outdoorlegacygear.com/
![](https://cdn.cacher.io/attachments/u/3b3qij9sue2rm/bYScg8FY8N-a3WO610YQo9tP2h5vV5ph/po6e1ic8a.png)