== Changelog ==
= 3.0.0: September 3, 2026 =
* Added
    - GiveWP 3.x / 4.x visual-builder grant path alongside legacy v2 forms.
    - Per-post metabox for restrict, donation form, minimum amount, and access expiry.
    - Blocks: `dtac/restricted-content` and `dtac/my-unlocked-content`.
    - Guest restore via signed email link and `[dtac_my_unlocked_content]` shortcode.
    - REST, feed, search, and oEmbed leak protection.
    - Donations-list Unlocked Content column and settings-page unlock counts.
    - Settings page visual refresh with grouped sections.
    - Cross-sell for Signals Dispatch for WooCommerce (themediaable) on the settings sidebar.
    - Developer hooks for restriction decisions, grants, gate markup, redirects, guest restore, leak protection, and shortcode/block output.
    - Local Select2 4.0.13 assets (JS, CSS, and MIT license) so admin settings do not load a CDN.
    - Plugin PSR-4 autoloader so the WordPress.org zip does not ship Composer vendor or PHPUnit.
* Updated
    - Requires WordPress 6.0+, PHP 8.1+, GiveWP 4.16.x (tested up to WordPress 7.1).
    - WordPress coding standards (WPCS) cleanup.
    - Composer and npm toolchains (PHPUnit 9.6, WPCS 3.x, Dart Sass, Babel 7).
    - REST post-meta auth callback now requires `edit_post` for the object instead of generic `edit_posts`.
* Fixed
    - Access-grant spoofing via content-ID whitelist.
    - Cache headers on restricted URLs.
    - Uninstall now removes plugin settings and related donation/donor meta.
    - Updating on PHP older than 8.1 deactivates with an admin notice instead of a parse fatal.

= 2.1.0: July 30, 2022 =
* Added
    - Function `dtac_get_give_forms` to get Give Forms and display inside a select box under Admin Settings.
    - Function `input_default_select` to fetch default values from Settings array inside the select box.
* Updated
    - NPM Packages.
    - Code Improvements.

= 2.0.0: Aug 10, 2020 =
* Updated
    - Optimized PHP code.
    - Compatible with Give 2.7.5
    - Removed the option to restrict the entire website. Not working in Sync with Give iFrame form.
* Fixed
    - Typos in plugin name and descriptions.
    - Not recognizing donors after payment success.
* Added
    - Admin page to manage plugin settings.
    - Introduced advance PHP Oops functionality like Interfaces, Abstract Classes and Traits.
    - Composer support.
    - Scripts & Styles compilation with Babel

= 1.0.2: July 1, 2020 =
* Tested: WordPress 5.4.x.

= 1.0.1: December 20, 2017 =
* Fixed: Fatal Error - Class not found.

= 1.0: November 8, 2017 =
* Initial Release. JMJK!!