PHP WordPress - Random Image Endpoint

1
2
<img src="http://example.com/api/images/random">
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Use a custom endpoint to grab a random image from the Media Library and display it to the screen.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.