Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- add_action( 'wp_insert_post', 'log_new_url', 10, 3 );
- function log_new_url( $post_id, $post, $update ) {
- if($update){
- $after = get_permalink( $post_id );
- error_log($after);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement