YahnisElsts / plugin-update-checker

A custom update checker for WordPress plugins. Useful if you don't want to host your project in the official WP repository, but would still like it to support automatic updates. Despite the name, it also works with themes.
MIT License
2.25k stars 410 forks source link

if i want to set update check to weakly how What number should I put? #440

Open Alireza-Ghavabesh opened 3 years ago

Alireza-Ghavabesh commented 3 years ago

i think since it is on hour, i have to set : 7 * 24 = 168 hour no ?

YahnisElsts commented 3 years ago

Yes, that looks right to me.

slimanehma commented 1 year ago

Where is the update check time set?

YahnisElsts commented 1 year ago

When you call buildUpdateChecker, you can pass the check interval as the optional fourth argument. For example:

$myUpdateChecker = PucFactory::buildUpdateChecker(
    'https://example.com/path/to/details.json',
    __FILE__, 
    'unique-plugin-or-theme-slug',
    168
);