WP Placeholders
Generate placeholder images on your WP instance
Requirements
- WordPress 5.x
- PHP 5.3+
Installation
Download and unzip into a subfolder of your wp-content/plugins
folder.
In your WordPress go to the Dashboard and then to Plugins, find the Placeholders plugin and activate it.
Usage
Create an img
tag and in its src
attribute call the url
function from the Placeholders
class:
<img src="<?php Placeholders::url(720, 480, true); ?>" alt="" class="img-responsive">
The first parameter is the width, the second one is the height and the last one controls whether to echo the generated URL or not.
Licensing
MIT licensed
Includes the Roboto Regular font, which is covered by the Apache License 2.0, you can find more details here.
Author
Author: biohzrdmx <github.com/biohzrdmx>
Support me
Did you find this project useful?
Then you may want to support me by buying me a coffee!