Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter markingston

    (@markingston)

    Haha,
    replying to my own post here… I didn’t read your code far enough. I see you already have a switch:

    if(strpos($item['link'] , 'http') ===false){ //not full link
    					$link = ($item['link'] != 'site_url')? $admin_url.$item['link'] : home_url();
    				}else{
    					$link = $item['link'];
    				}

    So sorry for my previous hack. I guess if I just put in a full URL your code will handle my need without the need for a tick box or a test!

    Sorry for any confusion. All the best.

Viewing 1 replies (of 1 total)