Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- add_action( 'wp_insert_post', 'wpse128767_add_meta' );
- function wpse128767_add_meta( $post_id ) {
- // do something here, add post meta for example
- add_post_meta( $post_id, 'key', 'value' );
- }
Add Comment
Please, Sign In to add comment