Update post’s comment status?

0
0

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?

  • You must to post comments
0
0

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.

  • Lanny Heidbreder
    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 to post comments
0
0

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.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.