Skip to content

Instantly share code, notes, and snippets.

@FrankM1
Created August 2, 2012 01:03
Show Gist options
  • Save FrankM1/3232108 to your computer and use it in GitHub Desktop.
Save FrankM1/3232108 to your computer and use it in GitHub Desktop.
dummy images for wordpress before export
function dummy_wp_get_attachment_url( $url, $post_id ){
return 'http://dummy/image/URL';
}
add_filter( 'wp_get_attachment_url' , 'dummy_wp_get_attachment_url' , 10 , 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment