Plugin Directory

Changeset 2928145


Ignore:
Timestamp:
06/19/2023 05:48:05 PM (3 years ago)
Author:
deepakanand767
Message:

Added post type product to dropdown if woocommerce is not installed and post type "product" is created.

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

Legend:

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

    r2921341 r2928145  
    86862.1.1 - Minor bug fixes and performance improvements.
    87872.1.2 - Fixed the redirection issue when activated through WP CLI.
     882.3.0 - Added post type product to dropdown if woocommerce is not installed and post type "product" is created.
    8889== Upgrade Notice ==
  • wp-dummy-content-generator/trunk/includes/functions-posts.php

    r2785559 r2928145  
    1919        $posttypes_array[$post_type] = $wp_dummy_content_generator_pt_name;
    2020    }
    21     unset($posttypes_array['product']); //exclude 'product' post type as we are providing separate section for products
     21    if ( class_exists( 'WooCommerce' ) ) {
     22        unset($posttypes_array['product']); //exclude 'product' post type as we are providing separate section for products
     23    }
    2224    return $posttypes_array;
    2325}
  • wp-dummy-content-generator/trunk/wp_dummy_content_generator.php

    r2921341 r2928145  
    1717 * Plugin URI:        https://tutsocean.com/wp-dummy-content-generator/
    1818 * Description:       This plugin is purely made by developers and for developers. Use this plugin to generate dummy/fake users, posts, custom posts and woocommerce products for various purposes.
    19  * Version:           2.2.1
     19 * Version:           2.3.0
    2020 * Author:            Deepak anand
    2121 * Author URI:        https://tutsocean.com/about-me
     
    3737 * Rename this for your plugin and update it as you release new versions.
    3838 */
    39 define( 'wp_dummy_content_generator_PLUGIN_NAME_VERSION', '2.2.1' );
     39define( 'wp_dummy_content_generator_PLUGIN_NAME_VERSION', '2.3.0' );
    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.