=== Slug Search and Admin Columns ===
Contributors: codeandcore
Donate link: https://codeandcore.com
Tags: admin, slug, columns, search, custom-columns
Requires at least: 5.0
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 2.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Enhance your WordPress admin with powerful slug search, sortable ID and Slug columns, and flexible settings for better content management.

== Description ==

**Slug Search and Admin Columns** is a powerful WordPress plugin that supercharges your admin panel with advanced content management tools. Perfect for editorial teams, SEO professionals, developers, and site managers who need precise control over their content.

= Key Features =

* **Slug Search** - Search posts, pages, and custom post types by their slug (URL path)
* **Sortable Columns** - Add ID and Slug columns to admin post lists with sorting capability
* **Integrated Search** - Works directly with the default WordPress search box
* **Smart Detection** - Automatically detects slug searches without configuration
* **Post Type Control** - Enable features for specific post types only
* **User Permissions** - Control which user roles can see the columns and search
* **Customizable Labels** - Rename column headers to match your workflow
* **Clean & Secure** - Follows WordPress coding standards with proper sanitization and capability checks
* **Privacy Focused** - Optional anonymous telemetry with full user control

= Why Use This Plugin? =

**For Content Managers:**

- Quickly find posts by their URL slug for efficient content organization
- See post IDs at a glance for reference and linking
- Sort content by ID or slug for better overview

**For SEO Professionals:**

- Easily identify and manage URL structures
- Quick access to slug information for optimization
- Streamline content audits and URL management

**For Developers:**

- Clean, well-documented code following WordPress standards
- Lightweight and performance-optimized
- No conflicts with other plugins
- Developer-friendly with action hooks and filters

= Perfect For =

* Editorial teams managing large content libraries
* SEO experts optimizing URL structures
* Developers needing quick access to post IDs
* Portfolio managers organizing custom post types
* Agencies managing multiple client sites
* Anyone who wants better admin tools

= Security & Privacy =

* All user input is properly sanitized and validated
* Capability checks ensure only authorized users access features
* Optional telemetry with full transparency and user control
* Clean uninstall removes all plugin data
* Regular security updates and maintenance

= Multilingual Ready =

The plugin is fully translatable and ready for localization. Translation files can be added for any language.

= Documentation & Support =

* Comprehensive settings page with helpful tooltips
* Clean, intuitive interface
* Professional support from Code and Core team

== Installation ==

= Automatic Installation =

1. Log in to your WordPress admin panel
2. Navigate to **Plugins → Add New**
3. Search for "Slug Search and Admin Columns"
4. Click **Install Now** and then **Activate**
5. Go to **Settings → Slug Search & Columns** to configure

= Manual Installation =

1. Download the plugin ZIP file
2. Log in to your WordPress admin panel
3. Navigate to **Plugins → Add New → Upload Plugin**
4. Choose the downloaded ZIP file and click **Install Now**
5. Click **Activate Plugin**
6. Go to **Settings → Slug Search & Columns** to configure

= Configuration =

After activation:

1. Navigate to **Settings → Slug Search & Columns**
2. Select which post types to enable (Posts, Pages, Custom Post Types)
3. Enable ID and/or Slug columns as needed

4. Set user capability level for column visibility
5. Customize column labels if desired
6. Click **Save Changes**

That's it! You can now search by slug directly in the main WordPress search bar, and columns will appear in your admin post lists.

== Frequently Asked Questions ==

= Does this work with custom post types? =

Yes! The plugin works with all public post types. You can enable or disable the features for each post type individually from the settings page.

= Is it safe for non-admin users? =

Absolutely. You can control which user roles see the columns and search functionality by setting the capability level in the settings. By default, only Editors and Administrators have access.

= Will this slow down my admin panel? =

No. The plugin is lightweight and only runs in the WordPress admin area. It uses native WordPress queries and is optimized for performance.

= Can I customize the column labels? =

Yes! You can customize the labels for both the ID and Slug columns from the settings page to match your workflow or language preferences.



= Does it work with Gutenberg and Classic Editor? =

Yes! The plugin works seamlessly with both the Gutenberg block editor and the Classic Editor.

= Will it conflict with other plugins? =

The plugin is designed to be compatible with other WordPress plugins. It uses unique function names and follows WordPress best practices to avoid conflicts.

= Can I search by slug on the front-end? =

No, this plugin only adds search functionality to the WordPress admin area. It's designed specifically for content management, not front-end search.

= What happens when I uninstall the plugin? =

The plugin includes a clean uninstall process that removes all settings and data from your database. Your posts and content remain completely untouched.

= Does it support multisite? =

Yes! The plugin works on both single WordPress installations and multisite networks. Settings are configured per site.

= Is there a Pro version? =

Currently, this is a free plugin with all features included. Future premium features may be added based on user feedback.

== Screenshots ==

1. **Integrated Search** - Search by slug directly using the default WordPress search box
2. **ID and Slug Columns** - Sortable ID and Slug columns in the admin post list
3. **Settings Page** - Comprehensive settings panel with post type selection
4. **Column Customization** - Enable/disable columns and customize labels
5. **User Permissions** - Control which user roles can access features

== Changelog ==

= 2.0.1 - 2026-03-18 =
* Enhancement: Added deactivation feedback modal with premium glassmorphic design.
* Enhancement: Added automatic redirect to settings page upon plugin activation.
* Refactor: Moved deactivation feedback logic to dedicated `SSAC_Deactivation_Feedback` class.

= 2.0.0 - 2026-01-29 =
* Major Update: Search functionality now integrated directly into the main WordPress search box.
* Improvement: Removed separate "Slug Search" input field for a cleaner UI.
* Improvement: Removed "Search Mode" settings; plugin now automatically handles fuzzy/partial matching for slug-like queries.
* Enhancement: Streamlined codebase for better performance.

= 1.0.1 - 2025-12-23 =
* Fix: Fatal error on activation due to missing OpenSSL extension check.
* Fix: Function name collision with other plugins from same author.
* Improvement: Added file existence check for admin assets.

= 1.0.0 - 2025-12-22 =
* **Initial Release**
* Slug search functionality with exact and partial match modes
* Sortable ID and Slug columns for admin post lists
* Comprehensive settings page with post type selection
* User capability control for column visibility
* Customizable column labels
* Clean uninstall process
* Full WordPress coding standards compliance
* Security: Proper sanitization, validation, and capability checks
* Privacy: Optional anonymous telemetry with user control
* Multilingual ready with translation support

== Upgrade Notice ==

= 2.0.1 =
Includes important enhancements: premium deactivation feedback modal, automatic redirect to settings on activation, and improved code structure. Recommended for all users.

= 2.0.0 =
Major update: Search is now integrated into the main WordPress search bar. Separate search field has been removed.

= 1.0.1 =
Critical update: Fixes fatal error on activation and potential conflicts with other plugins. Upgrade immediately.

= 1.0.0 =
Initial release of Slug Search and Admin Columns. Install to enhance your WordPress admin with powerful content management tools!

== External Services ==

This plugin connects to an external service to send anonymous usage telemetry data. This helps us understand how the plugin is being used and improve compatibility and features.

**Service Provider:** Code and Core

**What Data Is Sent:**

The plugin sends the following anonymous data:

* WordPress version
* PHP version
* Plugin name and version
* Theme name and version
* Site URL (home URL)
* Site language
* Multisite status
* Event type (plugin activation, deactivation, uninstall, or settings changes)
* Timestamp of the event

**When Data Is Sent:**

Data is only sent when you explicitly opt-in to telemetry from the plugin settings page. Events are transmitted when:

* You opt-in to telemetry
* The plugin is activated
* The plugin is deactivated
* The plugin is uninstalled

**Data Protection:**

* All data is encrypted using AES-256-CBC encryption before transmission
* The request is authenticated with an HMAC-SHA256 signature
* No personal information, user data, or site content is ever collected
* Data is transmitted over HTTPS

**User Control:**
You can opt-in or opt-out of telemetry at any time from the plugin settings page. By default, no data is collected until you explicitly opt-in.

== Privacy Policy ==

This plugin optionally collects anonymous usage data to help improve compatibility and features. The data collected includes:

* WordPress version
* PHP version
* Plugin version
* Theme name and version
* Site language
* Multisite status
* Hashed site identifier (no personal data)

**No personal information, content, or user data is ever collected.**

You can opt-in or opt-out at any time from the plugin settings page. By default, no data is collected until you explicitly opt-in.

== Developer Notes ==

= Code Quality =

* Follows WordPress PHP Coding Standards
* Comprehensive PHPDoc documentation
* Clean, maintainable code structure
* Security-first approach with proper escaping and sanitization
* Performance optimized

= Hooks & Filters =

The plugin provides several hooks for developers:

**Actions:**

* `ssac_before_settings_save` - Fires before settings are saved
* `ssac_after_settings_save` - Fires after settings are saved

**Filters:**

* `ssac_default_settings` - Modify default settings
* `ssac_column_labels` - Customize column labels programmatically

== Credits ==

Developed with ❤️ by [Code and Core](https://codeandcore.com)

* Plugin Development: Code and Core Team
* Testing & QA: Code and Core Team

== Support ==

Need help? Have a question?

* Visit our website: [codeandcore.com](https://codeandcore.com)
* Email support: hello@codeandcore.com

We're committed to providing excellent support and regular updates to keep this plugin compatible with the latest WordPress versions.