Advertisement
geminilabs

Untitled

Apr 1st, 2023 (edited)
1,098
0
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.25 KB | None | 0 0
  1. /**
  2.  * This will delete the "imported" meta_key from all comments,
  3.  * Allowing Site Reviews to re-import previously imported WooCommerce reviews
  4.  */
  5. add_action('admin_init', function () {
  6.     delete_metadata('comment', 0, 'imported', null, true);
  7. });
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement