
內容簡介
FakerPress 是一款專為 WordPress 開發者設計的外掛,能快速生成測試用的假資料,協助開發者在創建佈景主題或外掛時填充內容,提升開發效率。
【主要功能】
• 自動生成假文章與自定義文章類型
• 隨機生成特色圖片與附件
• 生成用戶、標籤、分類及評論的隨機資料
• 支援現代 REST API 進行內容生成
• 一鍵刪除所有生成的假資料
• 隨機化 HTML 以捕捉潛在錯誤
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
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 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
Email
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.
