Changes between Initial Version and Version 1 of Ticket #54192, comment 8
- Timestamp:
- 10/10/2021 02:45:45 PM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #54192, comment 8
initial v1 3 3 {{{#!php 4 4 <?php 5 function get_attachment_id_by_rel_url($ur L) {6 $url_abs = home_url($ur L);5 function get_attachment_id_by_rel_url($url) { 6 $url_abs = home_url($url); 7 7 $attachment = attachment_url_to_postid($url_abs); 8 8 return $attachment;