Wrote function for digging

<form method="POST"> <input type="submit" name="nazvanie_knopkii" value="Поднять все мои записи" /> </form> 

This pkhp button, how to hide it for an hour after the click?

 <?php # Если кнопка нажата if( isset( $_POST['nazvanie_knopkii'] ) ) { echo my_dsfg(); # Пример: echo 'Все ваши данные обновлены и занимают первые позиции!'; } ?> <form method="POST"> <input type="submit" name="nazvanie_knopkii" value="Поднять все мои записи" /> </form> function my_dsfg() { $currents_users = wp_get_current_user(); global $wpdb; $get_max_id = $wpdb->get_var("SELECT max(id) FROM wp_participants_database "); $wpdb->query(" UPDATE wp_participants_database SET id = id + '$get_max_id' WHERE id_private = '$currents_users->id' "); } 

Reading the code, you can understand that the “function” raises the record to the 1st position (I hope, you don’t need to know why) to get rid of users who will keep their records in the first place with an auto click, I want to hide this button, what to do UPDATE, for example, for an hour or two

  • Let's say you have hidden a button that prevents the user to continue to send requests through postman directly? - Sergey
  • @ Sergey for example checking such a possibility? - DaemonHK pm
  • if there is a check on the server, then what prevents to return html without this button, for example, so https://stackoverflow.com/questions/21175753/how-to-embed-if-statement-inside-echo - Sergey

0