Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action('post_updated', 'test_function');
- function test_function($post_ID, $post_after, $post_before){
- //check if a specific post is updated here
- $post_content = $post_after->post_content;
- $raw_data=array(
- 'updated_post_content'=>$post_content,
- );
- //do something
- }
Add Comment
Please, Sign In to add comment