That’s what I wanted to ask about. Today I updated the GP theme, because I saw a notification in my WP Dashboard. Now when I open the functions.php file I see that the changes I made to it haven’t disappeared, they are still there and you say that they will get wiped. But they are still there after I updated the Theme a few hours ago. I’m talking about this line of code which I pasted in that file:
add_action( ‘init’, ‘stop_heartbeat’, 1 );
function stop_heartbeat() {
wp_deregister_script(‘heartbeat’);
}