=== WD Content Sections ===
Contributors: wdonlinedk
Donate link: https://paypal.me/wdonlinedk
Tags: reusable content, shortcode, block, content sections, gutenberg
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.1.6
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Create reusable Content Sections and insert them anywhere with shortcodes, Classic Editor buttons, or a Gutenberg block.

== Description ==

WD Content Sections adds a dedicated content type for reusable sections.

Features include:

* Reusable Content Sections.
* Shortcode: `[wd_section id="123"]`.
* Shortcode with featured image: `[wd_section id="123" image="yes"]`.
* Featured-image-only shortcode: `[wd_section_image id="123"]`.
* Optional start and end date/time scheduling.
* Gutenberg block with a selector and preview.
* Classic Editor insertion button.
* WooCommerce product description and Short description editor support.
* Shortcodes inside Content Sections.
* Shortcode column with a copy button in the Content Sections list.
* Shortcode box with one-click copy on the Content Section edit screen.
* Administration under the shared WD Online menu.

The plugin is standalone and does not require a separate WD Online core plugin.

== Installation ==

1. Upload the plugin ZIP in Plugins > Add New > Upload Plugin.
2. Activate WD Content Sections.
3. Open WD Online > Content Sections.
4. Create a section and insert it with a shortcode, the editor button, or the Gutenberg block.

== Changelog ==

= 1.1.6 =
* Fixed the Content Sections list so the complete shortcode is visible instead of being clipped to `[wd_`.
* Kept one-click shortcode copying in the list table.

= 1.1.5 =
* Fixed Plugin Check error by allowing filters on the legacy post type detection query.
* Added an explicit PHPCS exception for the intentional WordPress core `the_content` hook.
* Updated the WordPress `Tested up to` value to 7.1.

= 1.1.4 =
* Added a reliable Add Content Section button fallback for the WooCommerce Short description editor.
* Added a Shortcode box to the Content Section edit screen with one-click copy.
* Improved Plugin Check compatibility for date/time sanitization and the intentional WordPress core content filter.

= 1.1.3 =
* Added the Add Content Section button to the WooCommerce Short description editor.
* Removed the discouraged manual `load_plugin_textdomain()` call.
* Improved sanitization of start and end date/time values.
* Kept WordPress core content filtering while documenting the intentional core hook usage for Plugin Check.
* Added compatibility handling for common legacy Content Section post type and block names.

= 1.1.2 =
* Moved Content Sections under the shared WD Online menu in the WordPress admin area.

= 1.1.1 =
* Maintenance and compatibility improvements.
