Changeset 3107645
- Timestamp:
- 06/25/2024 06:20:54 PM (22 months ago)
- Location:
- wp-dummy-content-generator/trunk
- Files:
-
- 3 edited
-
README.txt (modified) (1 diff)
-
includes/functions-users.php (modified) (2 diffs)
-
wp_dummy_content_generator.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-dummy-content-generator/trunk/README.txt
r3107640 r3107645 125 125 3.4.1 - Removed unwanted vendors. 126 126 3.4.2 - Removed composer error for php version dependency. 127 3.4.3 - Fixed user data generation issue for firstname and last name. 127 128 == Upgrade Notice == -
wp-dummy-content-generator/trunk/includes/functions-users.php
r3089543 r3107645 6 6 function wp_dummy_content_generatorGenerateUsers($userRole='subscriber',$wp_dummy_content_generatorIsBio='off'){ 7 7 $wp_dummy_content_generatorFaker = Faker\Factory::create(); 8 $wp_dummy_content_generatorFirstName = $wp_dummy_content_generatorFaker->firstName ;9 $wp_dummy_content_generatorLastName = $wp_dummy_content_generatorFaker->lastName ;10 $wp_dummy_content_generatorUserName = $wp_dummy_content_generatorFaker->userName ;11 $wp_dummy_content_generatorUserEmail = $wp_dummy_content_generatorFaker->freeEmail ;8 $wp_dummy_content_generatorFirstName = $wp_dummy_content_generatorFaker->firstName(); 9 $wp_dummy_content_generatorLastName = $wp_dummy_content_generatorFaker->lastName(); 10 $wp_dummy_content_generatorUserName = $wp_dummy_content_generatorFaker->userName(); 11 $wp_dummy_content_generatorUserEmail = $wp_dummy_content_generatorFaker->freeEmail(); 12 12 $wp_dummy_content_generatorPassword = 'wp_dummy_content_generator'; 13 13 $user_id = wp_create_user( $wp_dummy_content_generatorUserName, $wp_dummy_content_generatorPassword, $wp_dummy_content_generatorUserEmail ); … … 16 16 update_user_meta($user_id,'last_name',$wp_dummy_content_generatorLastName); 17 17 if($wp_dummy_content_generatorIsBio == 'on'){ 18 $wp_dummy_content_generatorUserBio = $wp_dummy_content_generatorFaker->text ;18 $wp_dummy_content_generatorUserBio = $wp_dummy_content_generatorFaker->text(); 19 19 update_user_meta($user_id,'description',$wp_dummy_content_generatorUserBio); 20 20 } -
wp-dummy-content-generator/trunk/wp_dummy_content_generator.php
r3107640 r3107645 17 17 * Plugin URI: https://wpdcg.online/ 18 18 * Description: The "WP Dummy Content Generator" plugin is particularly useful for developers, designers, and website administrators who want to quickly populate their WordPress site with realistic dummy content. It saves time and effort by automatically generating content that mimics real posts and pages, enabling you to focus on other aspects of website development or testing. 19 * Version: 3.4. 219 * Version: 3.4.3 20 20 * Author: Deepak anand 21 21 * Author URI: https://wpdcg.online/about-us/ … … 37 37 * Rename this for your plugin and update it as you release new versions. 38 38 */ 39 define( 'wp_dummy_content_generator_PLUGIN_NAME_VERSION', '3.4. 2' );39 define( 'wp_dummy_content_generator_PLUGIN_NAME_VERSION', '3.4.3' ); 40 40 define( 'wp_dummy_content_generator_PLUGIN_BASE_URL',plugin_basename( __FILE__ )); 41 41 define( 'wp_dummy_content_generator_PLUGIN_BASE_URI',plugin_dir_path( __FILE__ ));
Note: See TracChangeset
for help on using the changeset viewer.