Taylor J
Well-known member
I am wanting to allow users to be able to change the date for their scheduled blog posts if they edit one before the current trigger_date assigned to the job/before it's state becomes visible.
I was able to get the job and it's details with:
But I can't find any methods/functions on that to change anything, mainly the trigger_date.
Would I just go about it like this?
I was able to get the job and it's details with:
PHP:
$app = \XF::app();
$job = $app->jobManager()->getUniqueJob('taylorjblogs_scheduledpost_115_1724429774');
But I can't find any methods/functions on that to change anything, mainly the trigger_date.
Would I just go about it like this?
PHP:
$job->trigger_date = [new date here];
$job->save();