Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function update_product_comment($comment_ID) {
- $commentarr = [];
- $commentarr['comment_ID'] = $comment_ID;
- $commentarr['comment_type'] = 'test';
- //wp_die(var_dump($commentarr['comment_type'])); <-- COMMENT_TYPE = 'TEST', SO FAR SO GOOD!
- wp_update_comment($commentarr); // <--- THE CULPRIT
- }
- add_action('edit_comment', 'update_product_comment');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement