I am attempting to set my blog up where whenever a publish is created (or up-to-date, only on the newest publish), it instantly saves the publish title and hyperlink to a text file around the server. This really is to ensure that I'm able to display a "latest around the blog" widget on other non-blog areas of my website. Does anybody know which file handles the procedures I am speaking about, or any other ways to do this?

Thanks ahead of time!

I recommend that the easiest method to do it would be to write a little Wordpress wordpress plugin, because any transformed you'll make towards the core is going to be lost throughout Wordpress upgrades. Catching the brand new publish event inside a simple Wordpress wordpress plugin ought to be quite simple.

This will help get began: http://codex.wordpress.org/Writing_a_Plugin

As Sabeen stated, it's far better to do this logic like a wordpress plugin instead of modifying the core files. That is what the wordpress plugin API can there be for.

You'll most likely desire to use the pre_post_update action for the wordpress plugin as a result.

// hook the pre_post_update action to call ppu_callback()
// right before a post is updated
add_action( 'pre_post_update', 'ppu_callback' );

function ppu_callback( $postid ) {
  // use the $postid to retrieve the post's info
  // and perform whatever logic you need to here

http://codex.wordpress.org/Plugin_API http://codex.wordpress.org/Function_Reference