This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <configuration> | |
| <system.webServer> | |
| <security> | |
| <requestFiltering allowDoubleEscaping="True" /> | |
| </security> | |
| <defaultDocument> | |
| <files> | |
| <clear /> | |
| <add value="index.php" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Ottengo l'ID di un attachment attraverso il suo URL | |
| * | |
| * @param $url | |
| * @return int | |
| */ | |
| public function get_attachment_id( $url ) | |
| { | |
| $attachment_id = 0; | |
| $dir = wp_upload_dir(); |
OlderNewer