Replace category
-
I am trying to make the following code to work and from “draft” to change it to specific category replace. Any help how its gonna do it?
// Schedule/Update Expiration
$opts[‘expireType’] = ‘category’;
$opts[‘id’] = $id;_scheduleExpiratorEvent($id,$ts,$opts);
}
add_action( ‘save_post’, ‘acf_set_expiry’, 10, 3 );until here it works but when i select category doesn’t save it…
the code before its
// Schedule/Update Expiration
$opts[‘expireType’] = ‘draft’;
$opts[‘id’] = $id;Any solution??
- The topic ‘Replace category’ is closed to new replies.