WordPress.org

Ready to get started?Download WordPress

Forums

how to increase option value (1 post)

  1. DrMosko
    Member
    Posted 8 months ago #

    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?

Reply

You must log in to post.

About this Topic

Tags