https://github.com/biohzrdmx/wp-placeholders
Generate placeholder images on your WP instance
https://github.com/biohzrdmx/wp-placeholders
php placeholder-image wordpress wordpress-plugin
Last synced: 2 months ago
JSON representation
Generate placeholder images on your WP instance
- Host: GitHub
- URL: https://github.com/biohzrdmx/wp-placeholders
- Owner: biohzrdmx
- License: mit
- Created: 2019-11-25T19:47:49.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-05-15T02:02:33.000Z (about 3 years ago)
- Last Synced: 2025-03-23T09:35:23.800Z (over 1 year ago)
- Topics: php, placeholder-image, wordpress, wordpress-plugin
- Language: PHP
- Homepage:
- Size: 92.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wp-placeholders
Generate placeholder images on your WP instance
## Requirements
- WordPress 6.2+
- PHP 8.2+
## 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:
```php
```
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.
Also, you can use a shortcode:
```
[placeholder width="1024" height="768"]
```
And you may also specify a custom class:
```
[placeholder width="1024" height="768" class="img-fluid"]
```
## Licensing
MIT licensed
Includes the _Roboto Regular_ font, which is covered by the Apache License 2.0, you can [find more details here](https://github.com/google/roboto/).
## Author
Author: biohzrdmx [](https://github.com/biohzrdmx)