=== LuckyFish Bulk Page Creator ===
Contributors: luckyfishmedia
Tags: pages, bulk, page creator, avada, site builder
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.2.6
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Create multiple WordPress pages at once with CSV import, parent page assignment, page templates, menu order, and Avada layout options.

== Description ==

LuckyFish Bulk Page Creator lets you scaffold an entire site structure in seconds. Enter page titles one per line, choose options, and click Create — your pages are ready to edit.

**Key Features:**

* Create up to 50 pages per batch
* Import titles from a CSV file
* Set page status (Draft, Pending Review, Private)
* Assign a parent page for nested structures
* Select any registered page template
* Set menu order automatically based on list order
* Skip duplicate pages by title
* **Avada theme support** — automatically sets sidebar position, sidebar widget area, page title bar, full-width, and padding options when Avada is detected

== Installation ==

1. Upload the `luckyfish-bulk-page-creator` folder to `/wp-content/plugins/`.
2. Activate the plugin through the **Plugins** menu in WordPress.
3. Navigate to **Bulk Page Creator** in the admin menu.

== Frequently Asked Questions ==

= How many pages can I create at once? =

Up to 50 pages per batch. For larger sets, split into multiple submissions.

= Does it work with Avada? =

Yes. When Avada (or an Avada child theme) is active, extra layout options appear for sidebar position, sidebar widget area, title bar, and full-width content area.

= Can I import titles from a spreadsheet? =

Yes. Export your spreadsheet as a CSV file and upload it using the CSV import field. Each non-empty cell becomes a page title.

== Changelog ==

= 1.2.6 =
* Replaced remaining short internal prefixes with full plugin-specific names.
* Updated admin CSS, JavaScript, form fields, nonce names, and asset names for WordPress.org prefix compliance.
* Registered plugin-specific inline style and script handles.
* Added CSV MIME type validation as a second layer of file type checking.
* Improved escaping and code quality consistency.

= 1.2.5 =
* Added sidebar widget area selector for Avada — correctly writes to Avada's _fusion serialized meta so the selected sidebar appears when editing the page.
* Fixed Avada meta to use the correct _fusion serialized storage format used by Avada 7.x.
* Moved inline script to wp_add_inline_script() for WordPress.org compliance.
* Renamed class and constants to use full plugin-specific prefix.
* Added missing wp_unslash() calls on remaining $_POST reads.
* Added Requires at least, Requires PHP, and License URI to plugin header.

= 1.2.0 =
* Replaced deprecated `get_page_by_title()` with `WP_Query` for WordPress 6.2+ compatibility.
* Fixed text domain to match plugin slug (`luckyfish-bulk-page-creator`).
* Added nonce verification hardening and additional input sanitization.
* Code quality improvements for WordPress Plugin Directory standards.

= 1.1.0 =
* Added Avada theme detection and layout meta support.
* Added CSV import functionality.

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.2.6 =
Recommended update. Improves WordPress.org prefix compliance, plugin-specific asset naming, CSV validation, and code quality consistency.
