=== BulkTree – Fast Bulk Pages & CPT Creator ===
Contributors: abdullrahman-ramadan
Donate link: https://abdullrahman.me/
Tags: bulk page creator, bulk pages, site structure, hierarchy, custom post type
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Rapidly build out full website architectures and hierarchical pages, posts, or custom post types in seconds.

== Description ==

**BulkTree** is a fast, lightweight, and developer-friendly tool that lets you scaffold entire WordPress site architectures in seconds.

Whether you are starting a new client website, creating a content wireframe, or setting up extensive nested pages, this plugin eliminates the repetitive work of creating pages and posts one by one.

### Key Features:
* **Batch Processing & Progress Bar:** Smoothly handles hundreds of pages without PHP execution timeouts or memory exhaustion.
* **Unlimited Hierarchy Depth:** Build nested parent-child trees using intuitive dash prefixes (`-` or `--`).
* **Any Public Post Type:** Full support for Pages, Posts, and all registered Custom Post Types (CPTs).
* **Robust Taxonomy Validation:** Attaches Categories, Tags, and Custom Taxonomy terms with server-side validation.
* **Status Control:** Choose between Draft, Publish, Pending Review, or Private.
* **Instant AJAX Interface:** Modern dashboard interface with live progress tracking and zero page refreshes.
* **Execution Audit & Quick Edit Links:** View created IDs, depth levels, taxonomy notices, and jump directly to post editing screens.
* **Developer Friendly:** Clean code with built-in hooks and filters for workflow customization.

### Hierarchy Syntax Example:
Simply paste or type your sitemap into the text box:
```text
Home
About Us
-Our Team
--Leadership
-Our Story
Services
-Web Development
-UI/UX Design
Contact Us
```

== Installation ==

1. Upload the `bulktree` folder to the `/wp-content/plugins/` directory, or install directly through the WordPress plugins screen.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Navigate to **BulkTree** in your WordPress admin menu.
4. Select your desired Post Type, status, and optional taxonomy terms.
5. Paste your title list and click **Create Content Now**.

== Frequently Asked Questions ==

= Does it support WooCommerce or Custom Post Types? =
Yes! Any public post type registered in your WordPress installation will automatically appear in the Post Type dropdown.

= What happens if I use dashes on a non-hierarchical post type? =
Standard WordPress posts and non-hierarchical post types do not support parent/child relationships. The plugin detects this, displays an informational notice, and strips the dash prefixes so titles remain clean.

= Are there hooks available for developers? =
Yes. You can use `bulktree_post_data`, `bulktree_before_create_post`, and `bulktree_after_create_post` to filter post attributes or trigger custom actions.

== Screenshots ==

1. Creating pages and custom post types with hierarchy syntax and taxonomy selection.
2. Execution audit results showing created items, IDs, hierarchy levels, and direct edit links.

== Changelog ==

= 1.0.0 =
* Initial public release on WordPress.org with batch processing and enterprise-level validations.
