Created
August 26, 2025 15:24
-
-
Save propertyhive/95952ed5e2a63c57b6804b441ce87db5 to your computer and use it in GitHub Desktop.
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
| add_action( 'propertyhive_property_import_queued_media_imported', 'pause_between_media_imports', 10, 2 ); | |
| function pause_between_media_imports($property_id, $media_type) | |
| { | |
| sleep(5); // pause for 5 seconds between importing media for each property to try and get around 'Too Many Requests' issue. | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment