Use this code snippet to use another function,
function my_function( $post_id ) {
//Some code
}
add_action( 'save_post', 'my_function' );
This fires when a post is inserted.
Use this code snippet to use another function,
function my_function( $post_id ) {
//Some code
}
add_action( 'save_post', 'my_function' );
This fires when a post is inserted.