Skip to content

Instantly share code, notes, and snippets.

View alettieri's full-sized avatar
💭
thinking

Antonio Essex-Lettieri alettieri

💭
thinking
View GitHub Profile
@alettieri
alettieri / business.php
Created July 6, 2012 17:36
WordPress Geocode
function business_save_post($post_id, $post){
// verify if this is an auto save routine.
// If it is our form has not been submitted, so we dont want to do anything
if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE )
return;
// verify this came from the our screen and with proper authorization,
// because save_post can be triggered at other times
if ( isset( $_POST[ 'business_noncename' ] ) && !wp_verify_nonce( $_POST['business_noncename'], plugin_basename( __FILE__ ) ) )