=== Post Type Column Editor – Easy Admin Columns Builder === Contributors: dipankarpal212 Plugin URI: https://profiles.wordpress.org/dipankarpal212 Donate link: https://www.paypal.me/dipoo7 Tags: column, columns, taxonomy-column, post-type, wp-columns Requires at least: 5.8 Tested up to: 6.8 Requires PHP: 7.4 Stable tag: 1.0.6 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Playground: true Customize WordPress admin columns for post types, users, taxonomies & more. Add, reorder, or remove columns easily – no coding needed. == Description == **Post Type Column Editor** gives you complete control over the WordPress admin columns for any post type. - ✅ Add, edit, and remove columns from a simple interface - ✅ Select or deselect all columns using the top-left checkbox - ✅ Display post meta, static text, or use your own callback for full customization - ✅ Works with all registered post types *(restricted types require Pro)* - ✅ Beautiful, responsive interface ⚠️ **Pro-Only Features** - 🔄 Drag & drop column reordering - 🧩 Code editor popup for editing filter hook callbacks - 🛒 WooCommerce post type support --- ### 🔍 Key Features - Add/edit/remove any admin columns - Enable/disable columns per post type - Supports core fields, post fields, meta fields, additional fields and custom fields - Filter hook provided per column for rendering output - Clean, intuitive UI - Works with all custom post types - *(Pro)* Drag & drop reordering - *(Pro)* Built-in editor for custom callbacks --- ### 🧩 Column Types Explained *(In the “Edit Columns” popup for each post type)* 1. **Core Field** – Native WordPress columns (e.g., Title, Date) - Only the label is editable - To customize, uncheck and re-add it as a custom field 2. **Post Field** – Columns from the `wp_posts` table (e.g., post_status, post_author) - Label is editable - Output can be modified via filter hook only 3. **Meta Field** – Auto-detected from the `postmeta` table - Label is editable - Do **not** change the meta key — it must match the database exactly 4. **Custom Field** – Fully flexible - Set your own key and label - Use the hook to render any content - Ideal for developers or integrating third-party fields 5. **Additional Field** – - Useful derived values like featured image, word count etc. - Filter hook can be used to modify the content --- == Installation == 1. Upload the plugin to `/wp-content/plugins/post-type-column-editor` or install via the Plugins screen 2. Activate it through **Plugins → Installed Plugins** 3. Go to **WP-Admin → Column Editor** to configure your columns --- == Frequently Asked Questions == = Does this work with custom post types? = Yes, all registered post types will appear. *(Some types like WooCommerce are Pro-only.)* = Can I show ACF fields in a column? = Yes! In Pro plugin the ACF fields can be shown. = How do I use a custom callback to render column content? = Click **“Show Hook”** on the column to see the filter hook. Copy the snippet into your theme's `functions.php` file and return your custom output. *(Pro version includes an inline code editor.)* = What is the filter hook? = Developers can extend the `Post Type Column Editor` using WordPress filter hooks. Below is a key filter provided by the plugin: Use this filter to control what gets displayed in custom columns: `add_filter( "ptcm_screen_column_value_{$screen_type}_{$post_type}_{$column_key}", function( $value, $post_id , $screen_data) { ... }, 10, 3 );` This hook allows you to customize the content displayed in your custom admin columns based on the post type and the column key. 🧪 Code Snippet: ```php