Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'save_post', 'my_save_post' );
- function my_save_post($post_id) {
- global $post;
- if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) return;
- $pdf = new PDF();
- $pdf->createPDF( $post );
- // Debug
- print_r( $post );
- die();
- }
Add Comment
Please, Sign In to add comment