I need to update the Openness or Closedness of a post’s comments depending on its taxonomy term. Comment status appears to be the only thing about a post I can’t change in an Update Post action. Am I missing something, or is this a current limitation?
- Lanny Heidbreder asked 5 years ago
- You must login to post comments
I worked around this by using a PHP block:
$trigger['comment_status'] = 'closed';
return wp_update_post($trigger);
…but I would just as soon never ever put custom PHP in the database, and hopefully disable the ability completely for everyone else.
- Lanny Heidbreder answered 5 years ago
- You must login to post comments
You’re right, for the time being, it’s a limitation of the action. In the next version of the plugin, there will be an ability to update any post field.
- Gregory answered 5 years ago
-
Ah, thanks for confirmation! And thanks so much for this plugin, too; I’m a sucker for any rules/workflow/automation tool, and it’s great to have one for WordPress.
- You must login to post comments
Your Answer
Please login first to submit.