1
How do I create in PHP a condition that changes the record of a field in a column in the database every 30 days?
Example:
if ( $valor == 'value_1'){
// Função que altera o registro
}
value_2
// Value to be changed
meta_value
// Field that stores the value
wp_usermeta
// Table
Every 30 days.
PHP alone will not do that. What you can do is create a PHP script that does what you want and call it by Windows task scheduler or cron on Linux.
– Diego