• Resolved maksymk

    (@maksymk)


    Tell me how, with your scheduler, to set the execution period for a week or a month?

    found the periods in the code, but they are not in the period selection list

    public function interval( $since ) {
    // array of time period chunks
    $chunks = array(
    /* translators: 1: The number of years in an interval of time. */
    array( 60 * 60 * 24 * 365, _n_noop( ‘%s year’, ‘%s years’, ‘wp-crontrol’ ) ),
    /* translators: 1: The number of months in an interval of time. */
    array( 60 * 60 * 24 * 30, _n_noop( ‘%s month’, ‘%s months’, ‘wp-crontrol’ ) ),
    /* translators: 1: The number of weeks in an interval of time. */
    array( 60 * 60 * 24 * 7, _n_noop( ‘%s week’, ‘%s weeks’, ‘wp-crontrol’ ) ),
    /* translators: 1: The number of days in an interval of time. */
    array( 60 * 60 * 24, _n_noop( ‘%s day’, ‘%s days’, ‘wp-crontrol’ ) ),
    /* translators: 1: The number of hours in an interval of time. */
    array( 60 * 60, _n_noop( ‘%s hour’, ‘%s hours’, ‘wp-crontrol’ ) ),
    /* translators: 1: The number of minutes in an interval of time. */
    array( 60, _n_noop( ‘%s minute’, ‘%s minutes’, ‘wp-crontrol’ ) ),
    /* translators: 1: The number of seconds in an interval of time. */
    array( 1, _n_noop( ‘%s second’, ‘%s seconds’, ‘wp-crontrol’ ) ),
    );

    Forgive me for mistakes, not a native speaker. Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Create an event once a week or month’ is closed to new replies.