Filter: publishpressfuture_expiration_actions not working
-
Hey guys,
In version 2.9.0 you added a filter called “publishpressfuture_expiration_actions” which we had previously used to add custom expiration actions (post statuses)
Example code:add_filter('publishpressfuture_expiration_actions',
'dut_add_custom_expire_actions', 9999, 2);
function dut_add_custom_expire_actions($actions, $post_type) {$actions['expired'] = "Expired";
$actions['archived'] = "Archived";
return $actions;
}It seems like the filter is still active as I can see them show up in the “Actions” list. However, after saving the post, then going back to the posts list – it shows an error that the action cannot be scheduled due to a configuration error.
I think something changed in Version 3, as this no longer works. Can you please explain how this filter should work?
Cheers,
C.
- The topic ‘Filter: publishpressfuture_expiration_actions not working’ is closed to new replies.