jmlapam

Untitled

Feb 9th, 2014
52
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3. * Plugin Name: Zetravelerz
  4. * Description: Fonctionnalités WP de zetravelerz.com
  5. * Version: 1.0
  6. * Author: Julien Maury
  7. * Author URI: http://www.tweetpress.fr
  8. */
  9.  
  10. // Pas de load direct
  11. defined('ABSPATH') or die('Cheatin uh?');
  12.  
  13. add_action('wp_head','_favicon_gravatar');
  14. function _favicon_gravatar() {
  15. $hash = md5(strtolower(trim('mail@gmail.com')));
  16. echo '<link rel="shortcut icon" href="http://www.gravatar.com/avatar/' . $hash . '?s=16" />';
  17. }
RAW Paste Data