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

    (@sykat)

    I got it

    $url = wp_get_attachment_url(id); //id is file's id
    $urllocal = explode(site_url(), $url)[1];
Viewing 1 replies (of 1 total)
  • The topic ‘I want local url for wp_get_attachment_url()’ is closed to new replies.