Created
November 1, 2012 12:57
-
-
Save syamilmj/3993470 to your computer and use it in GitHub Desktop.
replace attachment with dummy image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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