HEX
Server: nginx/1.27.1
System: Linux in-3 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64
User: ivenus-clone (3297)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v4513/ivenus-clone/public_html/wp-content/plugins/woo-razorpay/includes/cron/cron.php
<?php

add_action(Constants::ONE_CC_ADDRESS_SYNC_CRON_HOOK, Constants::ONE_CC_ADDRESS_SYNC_CRON_EXEC);

function createCron(string $hookName, int $startTime, string $recurrence)
{
    if (wp_next_scheduled($hookName))
    {
        throw new Exception($hookName . " already exists");
    }

    wp_schedule_event($startTime, $recurrence, $hookName);

}

function deleteCron(string $hookName)
{
    $timestamp = wp_next_scheduled( $hookName );
    wp_unschedule_event( $timestamp, $hookName );
}