Advertisement
tribulant

Hashlink Check

Jun 7th, 2013
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.28 KB | None | 0 0
  1. <?php
  2.  
  3. function my_hashlink_check($status = true, $link = null, $regs = array()) {
  4.     if (!empty($link)) {
  5.         if (strstr($regs[0][$rkey], 'notrack') == false) {
  6.             $status = false;
  7.         }
  8.     }
  9.  
  10.     return $status;
  11. }
  12.  
  13. add_filter('wpml_hashlink_loop', 'my_hashlink_check', 10, 3);
  14.  
  15. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement