• hello,

    $nextUpdate = $options['lastUpdate']+180 ;
    
    if ( $nextUpdate < $userTime ){
    
    		// set last update
    		$options['lastUpdate'] = $nextUpdate;
    }

    usertime is current timstamp
    nextupdate is timstamp
    options -lastupdate is timstamp also that created when the plugin activated.

    I want every time the if state correct the $options[‘lastUpdate’] will get the nextupdate value, as the next time it will be correct it will do increvment, but the increment only do it one time, and i dont know why?

  • The topic ‘how to increase option value’ is closed to new replies.