Buonasera, avrei una domanda da porvi.
Avendo modificato il tema del mio sito – ahimè senza aver pensato di creare un tema child – vorrei disattivare gli aggiornamenti al tema cosଠda non perdere tutto il lavoro fatto. Ho visto che non devo fare altro che inserire il seguente codice all’interno del file function.php
remove_action( 'load-themes.php', 'wp_update_themes');
remove_action( 'load-update.php', 'wp_update_themes');
remove_action( 'admin_init', '_maybe_update_themes');
remove_action( 'wp_update_themes', 'wp_update_themes');
add_filter( 'pre_transient_update_themes', create_function('$a', "return null;"));
remove_action( 'load-update-core.php', 'wp_update_themes');
add_filter( 'pre_site_transient_update_themes', create_function('$a', "return null;"));
La mia domanda è: in quale punto preciso del function.php devo inserire tale codice? Non vorrei creare danni inserendolo in un punto errato.
Spero in una vostra risposta, grazie.