Plugin Directory

Changeset 3107645


Ignore:
Timestamp:
06/25/2024 06:20:54 PM (22 months ago)
Author:
deepakanand767
Message:

Fixed user data generation issue for firstname and last name.

Location:
wp-dummy-content-generator/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-dummy-content-generator/trunk/README.txt

    r3107640 r3107645  
    1251253.4.1 - Removed unwanted vendors.
    1261263.4.2 - Removed composer error for php version dependency.
     1273.4.3 - Fixed user data generation issue for firstname and last name.
    127128== Upgrade Notice ==
  • wp-dummy-content-generator/trunk/includes/functions-users.php

    r3089543 r3107645  
    66function wp_dummy_content_generatorGenerateUsers($userRole='subscriber',$wp_dummy_content_generatorIsBio='off'){
    77    $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();
    1212    $wp_dummy_content_generatorPassword = 'wp_dummy_content_generator';
    1313    $user_id = wp_create_user( $wp_dummy_content_generatorUserName, $wp_dummy_content_generatorPassword, $wp_dummy_content_generatorUserEmail );
     
    1616    update_user_meta($user_id,'last_name',$wp_dummy_content_generatorLastName);
    1717    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();
    1919        update_user_meta($user_id,'description',$wp_dummy_content_generatorUserBio);
    2020    }
  • wp-dummy-content-generator/trunk/wp_dummy_content_generator.php

    r3107640 r3107645  
    1717 * Plugin URI:        https://wpdcg.online/
    1818 * 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.2
     19 * Version:           3.4.3
    2020 * Author:            Deepak anand
    2121 * Author URI:        https://wpdcg.online/about-us/
     
    3737 * Rename this for your plugin and update it as you release new versions.
    3838 */
    39 define( 'wp_dummy_content_generator_PLUGIN_NAME_VERSION', '3.4.2' );
     39define( 'wp_dummy_content_generator_PLUGIN_NAME_VERSION', '3.4.3' );
    4040define( 'wp_dummy_content_generator_PLUGIN_BASE_URL',plugin_basename( __FILE__ ));
    4141define( 'wp_dummy_content_generator_PLUGIN_BASE_URI',plugin_dir_path( __FILE__ ));
Note: See TracChangeset for help on using the changeset viewer.