FakerPress
FakerPress is a clean way to generate fake and dummy content to your WordPress, great for developers who need testing.
Install in
When creating a new theme or plugin, you always need to create a custom data set to test whether it’s working as expected – or not. As developers ourselves, we’ve run into this problem quite often.
The goal of FakerPress is to fill this gap, offering a solution for both developers and WordPress users.
Note: This plugin requires WordPress 6.6 and PHP 8.1 or higher to be activated.
Checkout our GitHub Repository
Components Included
- Posts
- Custom Post Types
- Meta Data
- Featured Image
- Users
- Tags
- Categories
- Comments
- Custom Comment Types
- Attachments (NEW)
Create Dummy Content
During the development process, a WordPress developer will often need to fill up an empty theme or test site with placeholder content. Doing so manually can be time consuming. FakerPress allows you to speed up this process.
Random Featured Images
FakerPress creates randomly generated attachments as Featured Images for your WordPress test content.
Random Meta Information
FakerPress enables you to generate custom placeholder meta information for Users, Posts, Terms, and Comments with 20 types of data.
Delete Generated Content
After testing is complete, you can delete any FakerPress-generated dummy content all at once.
Randomized HTML
When creating placeholder posts, FakerPress creates randomized HTML to allow you to catch bugs that an XML import may not.
Include Images in HTML
FakerPress also allows you to output images to your HTML tests, enabling testing for placeholder media.
Comments with Real Browser Data
FakerPress includes examples of real browser data with generated comments, allowing for more robust testing.
Generate Random Terms
FakerPress includes custom settings to determine the quantity and type of terms generated for test content. The plugin then handles randomization to generate terms within those parameters for tailored test data.
Random User Profiles
Manually generated data for test profiles might not catch edge cases. With FakerPress, randomized data fills up relevant fields with randomized information for more robust testing.
Modern REST API
FakerPress now includes a comprehensive REST API for programmatic content generation. All modules support REST endpoints with batching capabilities for large-scale generation. Full OpenAPI documentation is available at /wp-json/fakerpress/v1/docs.
Generate Attachments
Create realistic image attachments with customizable dimensions, multiple image providers (Placehold.co, Lorem Picsum), and automatic generation of alt text, captions, and descriptions. All images include proper attribution – Lorem Picsum images credit the original Unsplash photographers.
Types of Meta Included
- Attachment
- WP_Query
- Number
- Elements
- Letter
- Words
- Text
- HTML
- Lexify
- Asciify
- Regexify
- Person
- Geo Information
- Company
- Date
- TimeZone
- Domain
- IP
- Browser User Agent
Languages
To translate FakerPress into your language, please visit the project in GlotPress. You can find additional support and best practices through your locale’s Translation Team.
See room for improvement?
Great! There are several ways you can get involved to help make FakerPress better:
- Report Bugs: If you find a bug, error, or other problem, please report it! You can do this by creating a new topic in the plugin forum. Once a developer can verify the bug by reproducing it, they will create an official bug report in GitHub where the bug will be worked on.
- Suggest New Features: Have an awesome idea? Please share it! Simply create a new topic in the plugin forum to express your thoughts on why the feature should be included and get a discussion going around your idea.
- Issue Pull Requests: If you’re a developer, the easiest way to get involved is to help out on issues already reported in GitHub. Be sure to check out the contributing guide for developers.
Thank you for wanting to make FakerPress better for everyone! We salute you.
Written by Joobi from the project's own listing. See the source page
0.10.3 — 29 of November 2026
- Security – Admin search endpoints now require the FakerPress admin capability and return only the fields the pickers use. [#270]
- Fix – The post and author pickers on the Posts and Attachments pages list matching posts and users by name again. [#270]
0.10.2 — 14 of November 2026
- Tweak – Buttons, select menus, checkboxes, switches, accordion headers and the dialog close button on the FakerPress admin pages show the pointer cursor on hover. [#255]
0.10.1 — 10 of November 2026
- Fix – Erasing faked data from FakerPress > Settings works again, instead of stopping on “The link you followed has expired.” [#252]
0.10.0 — 18 of October 2026
- Feature – Rebuild every FakerPress admin page (Posts, Users, Terms, Comments, Attachments and Settings) in React with Tailwind CSS v4 and shadcn/ui, on top of the REST API; the Taxonomy and Meta Field Rules keep the familiar numbered, label-left layout and every meta type, including Date. [#187]
- Fix – Meta Field Rules on generated attachments are now generated like on every other module, instead of each rule being stored raw under a numeric meta key. [#187]
- Fix – Attachment meta rules that pick Placehold.co (half of the default featured-image rule on Posts) no longer store an error; Placehold.co images are requested as PNG, and a failed image leaves the meta empty. [#187]
- Fix – User generation no longer comes up one short when a generated website URL is longer than the 100 characters WordPress allows. [#187]
- Fix – The Users generator accepts a boolean
use_htmlfrom the REST API (theonvalue still works). [#187] - Tests – Add Jest coverage for the admin, REST payload tests for every generate endpoint, and build the JS before WPUnit in CI. [#187]
- Tweak – Format the JavaScript and TypeScript sources with Prettier; no behaviour change. [#235]
- Tweak – Clear every JavaScript lint and TypeScript error: WordPress package types, the
@fpimport alias in ESLint, the zod v4 meta-rule schema,…in translated strings, andlet/constin the legacy jQuery scripts. [#236] - Tweak – Clear every stylelint error in the admin styles with a Tailwind v4 aware config; the compiled CSS is unchanged apart from dropping obsolete
-moz-gradients and empty rules. [#237] - Tweak – PHPCS skips the public hook names, the namespaced Faker formatter names and the generated readme data, each with a documented reason. [#238]
- Fix – The text provider’s sentences, paragraphs and text no longer fatal on PHP 8 (
join()argument order); the post search verifies its nonce before reading the request; template output is escaped, and batch success messages are translatable. [#239] - Tweak – Document every class, method and template to the WordPress coding standards, and correct docblocks that contradicted the code. [#240]
- Tests – CI runs the Jest suite and a TypeScript check, and lints JS and CSS in separate steps, so one failure never hides another. [#241]
- Tweak – Update the Composer dev dependencies with open security advisories (Composer, Guzzle, PSR-7, Symfony, Flysystem, PHP_CodeSniffer, PHPCSUtils and WPCS). [#242]
- Tweak – FakerPress now requires WordPress 6.6 or later, the first version that ships the React JSX runtime the new admin loads. Older sites would load blank admin pages, so WordPress now refuses to install this update or activate the plugin there. [#245]
- Tweak – Leave the Jest tests and mocks and the TypeScript, shadcn/ui and slic configs out of the plugin zip. [#246]
- Tweak – Update the JavaScript dependencies within their current ranges in
bun.lock, which covers every open Dependabot update (axios, express, lodash, node-forge, picomatch, PostCSS and more), and pin TypeScript 5 for the type check. [#247] - Feature – The result of a run now sits on the Generate button: progress and elapsed time while it works, then what was generated and how long it took, or what went wrong. View details opens every generated item with its summary, edit and view links, plus an Advanced view with each item’s full data and the raw request and response. [#248]
- Fix – Generate errors from the REST API show their message instead of “An unknown error occurred.”, and links from batched runs no longer overwrite each other. [#248]
0.9.2 — 20 of July 2026
- Fix – Silence the
Using null as an array offset is deprecatedPHP 8.1+ notices logged from WordPress core’sRequests/Iri.phpwhen fetching external images; the Attachment module now routesdownload_url()and the Lorem Picsum metadata request through helpers that suppress the core deprecation and restore the previous error-reporting level. [#230] - Fix – Bulk user generation now honours the selected role instead of always assigning Subscriber; the Users endpoint prefers the admin form’s plural
rolesvalue over the singularrolealias’s default, and the User module falls back to the site’s configured default role when none is requested. [#229] - Fix – “Erase faked data” now deletes generated categories and other terms;
Term::fetch()/delete()were reading the singularfakerpress.module_flag.termoption while generation wrote the pluralfakerpress.module_flag.terms, so no terms were ever collected for deletion. [#228] - Fix – Generate terms in the selected taxonomy again; the Terms endpoint no longer lets the singular
taxonomyalias’scategorydefault overwrite the admin form’s pluraltaxonomiesvalue, so choosing Tags now creates tags instead of categories. [#227] - Fix – Stop the
explode(): Passing null to parameter #2PHP 8.1+ deprecation when generating posts with a sparse payload; thePostmodule now defaults every splittable request value (comment status, author, post types, HTML tags, post parent, image origins) to an empty string before splitting. [#224] - Fix – Resolve the fatal error on WordPress 7.0 when generating attachments (
Call to undefined function FakerPress\Module\media_handle_sideload()); WordPress 7.0 preloadswp-admin/includes/file.php, so the singledownload_url()guard skippedmedia.php. Each admin include is now guarded by the function it actually provides. [#221]
0.9.1 — 22 of May 2026
- Fix – Restore date-type meta generation by importing the
Chronosclass in theWP_Metaprovider; callingmeta_type_dateno longer fatals withClass "FakerPress\Provider\Chronos" not found. [#209] - Fix – Honour the selected post type(s) on the Posts generator; the admin form’s plural
post_typesvalue is no longer silently overwritten by the singular alias’s default ofpost. [#210] - Fix – Suppress the
Undefined property: stdClass::$termswarning emitted byWP_Post::tax_inputunder PHP 8.x when the taxonomy config does not include atermskey. - Tweak – REST endpoint
POST /fakerpress/v1/posts/generatenow documentspost_types(array or comma-separated string) as the canonical parameter; the existingpost_typesingular alias is preserved for backwards compatibility. - Tests – Add regression coverage for
meta_type_date, sparsetax_inputconfigs, and every shape ofpost_typespayload (CSV, array, singular alias, plural-wins-over-default).
0.9.0 — 9 of March 2026
- Feature – Complete REST API implementation replacing legacy AJAX system
- Feature – Add comprehensive REST API endpoints for all modules (Posts, Users, Terms, Comments, Attachments)
- Feature – Implement attachment generation with support for multiple image providers (Placehold.co, Lorem Picsum)
- Feature – Add batching support for large data generation requests
- Feature – Include OpenAPI documentation at
/wp-json/fakerpress/v1/docs - Feature – Add attachment admin interface with customizable image dimensions and content options
- Feature – Include automatic attribution for all generated images (Lorem Picsum credits Unsplash photographers, Placehold.co credited in captions)
- Enhancement – Modernize JavaScript to ES6 with proper module structure
- Enhancement – Implement proper REST authentication with wp_rest nonce verification
- Enhancement – Add standardized error handling and validation across all endpoints
- Enhancement – Support for generating alt text, captions, and descriptions for attachments
- Fix – Ensure PNG format for placeholder images to avoid SVG compatibility issues
- Fix – Fix JavaScript errors with missing field validation
- Fix – Correct dropdown population for non-multiple select fields
- Fix – Translate REST API parameter names to module format for Posts (
post_type), Terms (taxonomy), Users (role), and Comments (comment_status) - Fix – Allow
post_statusparameter to be passed through REST API instead of hardcoding topublish - Fix – Map REST
comment_statusvalues (hold,approve,spam,trash) to WordPresscomment_approvedformat - Fix – Prevent null
$metasforeach crash in Term module when no meta is provided via REST API - Fix – Handle null
name_sizein Term module to use provider default instead of generating empty term names - Fix – Write mock image body to temp file in Attachment tests to support
download_url()stream mode - Fix – Pass DI container to Controller constructor in filter test to prevent
ArgumentCountError - Tweak – Improve parse_request methods across all modules with better type safety
- Tweak – Add internationalization support for JavaScript files
- Tweak – Replace font icon with SVG icon for WordPress admin menu
0.8.0 — 20 of May 2025
- Version – Update dependency
cakephp/chronosto3.1.0 - Version – Update PHP min version to
8.1+ - Fix – Resolve PHP
8.4+problems specially arounnd incompatibility with Chronos and notices.
0.7.2 — 18 of May 2025
- Fix – Resolve all fatals related to compatibility with version of Faker
1.24+. - Fix – Resolve some incompatibilities with WP Script build tools.
0.7.1 — 18 of May 2025
- Fix – Move the registration of the menus to avoid problems with
_load_textdomain_just_in_time()notices - Fix – Resolve problems with
count()applying to a String instead of an Array for PHP 8.1+ - Fix – Resolve fatals for newChronos being a bad string replacement.
0.7.0 — 16 of May 2025
- Version – Update dependency
fakerphp/fakerto1.24 - Version – Update dependency
lucatume/di52to0.4 - Tweak – Modified date handling from using
Carbonto useChronos. - Fix – Improved password for the randomized Users created, prevents weird scenarios with faked users allowing brute-force login. Props @rinatkhaziev
- Fix – Prevent fatals related to
$minparam on Meta Value generation for PHP 8.1+. Props @kubiq
0.6.6 — 26 of April 2024
- Fix – Prevent notices related to deprecated usage of Faker methods that were being called as properties.
- Fix – Prevent fatals related to bad typecasting of Faker methods used for meta generation. props @helgatheviking
0.6.5 — 26 of April 2024
- Fix – Ensure meta generation for Users, Terms and Comments work since changes made on version
0.6.2. props @helgatheviking
0.6.4 — 21 of April 2024
- Fix – Ensure that Faker is also included via Strauss, to prevent conflicts with other plugins.
- Fix – Resolve Fatal where trying to create posts, comments or terms would fail because of missing classes.
0.6.3 — 21 of April 2024
- Fix – Prevent fatal errors because of malformed composer autoload files.
0.6.2 — 21 of April 2024
- Version – Updated composer dependency
fakerphp/fakerto version1.23. - Feature – Include consistent user generation, to avoid users feeling a disjointed. props @helgatheviking
- Tweak – Include the ability to regenerate module data, allowing us to fetch values from earlier generations.
- Tweak – Include properly use Composer for autoloading and dependencies without conflicting with other plugins.
- Tweak – Include
lucatume/di52andnesbot/carbonStrauss dependencies, which prevents conflicts with other plugins. - Fix – Switch from using Placeholder.com to Placehold.co, as the first one was not working properly anymore. props @cgarofalo
- Fix – Searching terms nonce had a typo, preventing terms search from working as expected. props @cyrusdavid
- Fix – Prevent namespace problems with nonexistent classes, specially around Exceptions.
- Fix – Resolve a problem with Numbers Meta throwing errors on PHP 8.0+ [#168]
0.6.1 — 04 of April 2023
- Requirement – PHP Version 7.4 required for usage of FakerPress, important step to allow further improvements and tests.
- Version – Updated composer dependency
lucatume/di52to version3.3.1. - Version – Updated composer dependency
fakerphp/fakerto version1.21. - Version – Updated composer dependency
nesbot/carbonto version2.66. - Fix – Resolve some errors happening with Carbon and version 8.2 of PHP.
0.6.0 — 30 of March 2022
- Requirement – PHP Version 7.1 required for usage of FakerPress, important step to allow further improvements and tests.
- Feature – Modifications to the internal Modules of FakerPress to enable future work around WP-CLI.
- Feature – Include a new way to handle Administration Pages, included here to enable future work.
- Enhancement – Modifications to Select2 Styles for better accessibility usage.
- Tweak – Faker version dependency updated from
fzaninotto/Fakertofakerphp/Faker/. - Tweak – Move everything into the FakerPress namespace.
- Tweak – Autoload using Composer properly.
0.5.3 — 04 of March 2022
- Fix – Ensure Select2 usage of AJAX search properly encodes on all usages props @TheMMMdev
- Fix – Ensure Select2 usage of AJAX properly checks for nonces and permissions props @TheMMMdev
0.5.2 — 27 of January 2022
- Feature: Proper changelog page for users trying to figure out what has changed in the latest version of FakerPress.
- Feature: Excerpt size field added to ensure better control over Post generation prop @gtsantos
- Tweak: jQuery 3.5.X compatibility
- Fix: Prevent warning around post_excerpt usage introduced earlier on in the year. props @pattisahusiwa
- Fix: One more PHP 8 compatibility problem related to the generation of passwords props @DumahX
- Fix: Prevent PHP 8 from throwing a warning because of unnecessary
unlink()call for attachments props @wpuzman - Fix: Resolve problems around failed inline images that were unavailable which would cause a PHP Warning.
0.5.1 — 05 of January 2021
- Feature: Completely change folder structure to comply with PSR-4 autoloading with namespaces.
- Feature: Included a Fields API to more easily generate Fields for controlling fields used in the admin pages.
- Feature: Included a Template class to allow better separation of HTML and PHP files.
- Tweak: Include compatibility with
Follow this listing's changes (Atom feed)