Advertisement
ed3r

navbar links

Sep 27th, 2022
876
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.40 KB | None | 0 0
  1. add_filter('peepso_navigation', function($links){
  2.    
  3.     if(isset($links['home'])){
  4.         $links['home']['href'] = 'http://customdomain.com/custom/';
  5.     }
  6.  
  7.     if(isset($links['home-following'])){
  8.         $links['home-following']['href'] = 'http://customdomain.com/custom2/';
  9.     }
  10.  
  11.     if(isset($links['home-saved'])){
  12.         $links['home-saved']['href'] = 'http://customdomain.com/custom3/';
  13.     }
  14.  
  15.     return $links;
  16.    
  17. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement