Hey, coolday70, with JavaScript, you can refresh the page using location.reload();
, which is analogous to refreshing the page with the reload button.
You could enqueue a JavaScript file including that code: https://developer.wordpress.org/themes/basics/including-css-javascript/#scripts
Is that something along the lines of what you meant?
Thanks Ian, I dont understand how to enqueue a JavaScript file ?
Hey, coolday70, you can use WP Coder, https://wordpress.org/plugins/wp-coder/, to add some JS.
Granted, though, if you just add location.reload(); to the page, it will repeatedly refresh, so you’ll need to pinpoint when exactly you want to reload the page – you need some extra JS logic – to stop it from repeatedly loading.