bongzilla

Untitled

Feb 9th, 2021
89
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_filter('wpseo_breadcrumb_single_link' ,'add_single_link', 10 ,2);
  2.  
  3. function add_single_link($link_output, $link ){
  4. $output = array();
  5.  
  6. for ($i = 0; $i <= 0; $i++) {
  7. if($link["text"] != "Услуги") {
  8. array_push($output, "<span><a href=". $link["url"] .">" . $link["text"] . "</a></span>");
  9. }
  10. }
  11.  
  12. $html_output = "";
  13.  
  14. foreach ($output as $crumb) {
  15. $html_output .= $crumb;
  16. }
  17.  
  18. return $html_output;
  19. }
RAW Paste Data