Changeset 3125150
- Timestamp:
- 07/25/2024 10:31:35 AM (21 months ago)
- Location:
- test-content-generator/trunk
- Files:
-
- 2 edited
-
readme.md (modified) (3 diffs)
-
test-content-generator.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
test-content-generator/trunk/readme.md
r3067447 r3125150 1 1 # Test Content Generator 2 2 3 Plugin Name: Test Content Generator 3 Plugin Name: Test Content Generator 4 4 Plugin URI: https://codeberg.org/kifd-WordPress/TestContentGenerator 5 5 Contributors: keith_wp 6 6 Author Link: https://drakard.com/ 7 7 Requires at least: 4.0 or higher 8 Tested up to: 6. 58 Tested up to: 6.6.1 9 9 Requires PHP: 8.0 10 10 Stable tag: 0.4.2 11 11 License: BSD-3-Clause 12 12 License URI: https://directory.fsf.org/wiki/License:BSD-3-Clause 13 Tags: lorem ipsum, test content, wp cli, test posts, test images, test users, test comments13 Tags: test content, lorem ipsum, test posts, lipsum, wp cli 14 14 15 15 … … 44 44 Using the plugin defaults, you can populate a test site with just the following commands: 45 45 46 1. `wp plugin install test-content-generator --activate` 46 1. `wp plugin install test-content-generator --activate`\ 47 47 Download and activate the plugin. 48 2. `wp test users --amount=20` 48 2. `wp test users --amount=20`\ 49 49 Add 20 random Editor/Author/Contributor/Subscribers users who have registered within the last 60 days. 50 3. `wp test taxonomies --amount=50` 50 3. `wp test taxonomies --amount=50`\ 51 51 Add 50 taxonomy terms split between Categories and Post Tags. 52 4. `wp test images --amount=10` 52 4. `wp test images --amount=10`\ 53 53 Add 10 images of size 800x400 uploaded by any Editor/Author. 54 5. `wp test posts --amount=40` 54 5. `wp test posts --amount=40`\ 55 55 Add 40 Posts written within the last 60 days by any Editor/Author/Contributor, with a Featured Image and both categorised and tagged. 56 6. `wp test comments --amount=100` 56 6. `wp test comments --amount=100`\ 57 57 Add 100 comments to your Posts written within the last 60 days by any of the registered users. 58 58 … … 79 79 * Switched use of rand() to wp_rand() to stop the plugin check whining 80 80 * Added translator notes for the various placeholders 81 * Tested against 6. 5 and 6.4.381 * Tested against 6.4.3, 6.5 and 6.6.1 82 82 83 83 ### 0.4.1 -
test-content-generator/trunk/test-content-generator.php
r3067434 r3125150 91 91 public function admin_page_content() { 92 92 echo '<div class="wrap"><h1>'.esc_html__('Test Content Generator', 'TestContentGenerator').'</h1>'; 93 94 93 $_tab = filter_input(INPUT_GET, 'tab', FILTER_SANITIZE_ENCODED); 95 94 $active_tab = (array_key_exists($_tab, $this->tabs)) ? $_tab : $this->default_tab;
Note: See TracChangeset
for help on using the changeset viewer.