{"id":21602071,"url":"https://github.com/wpbp/cpt_columns","last_synced_at":"2025-04-11T02:32:16.098Z","repository":{"id":57082138,"uuid":"62423325","full_name":"WPBP/CPT_Columns","owner":"WPBP","description":"Improve the CPT list in the backend for your CPTs","archived":false,"fork":false,"pushed_at":"2023-08-21T12:40:49.000Z","size":23,"stargazers_count":20,"open_issues_count":0,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-30T00:54:58.509Z","etag":null,"topics":["wordpress","wordpress-php-library"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WPBP.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-07-01T22:37:34.000Z","updated_at":"2024-10-09T10:07:40.000Z","dependencies_parsed_at":"2022-08-24T14:42:49.876Z","dependency_job_id":null,"html_url":"https://github.com/WPBP/CPT_Columns","commit_stats":{"total_commits":9,"total_committers":2,"mean_commits":4.5,"dds":"0.11111111111111116","last_synced_commit":"d711b9d54155a6684ac9d3435924fa9f74b0d2a6"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WPBP%2FCPT_Columns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WPBP%2FCPT_Columns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WPBP%2FCPT_Columns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WPBP%2FCPT_Columns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WPBP","download_url":"https://codeload.github.com/WPBP/CPT_Columns/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248329646,"owners_count":21085575,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["wordpress","wordpress-php-library"],"created_at":"2024-11-24T19:11:55.716Z","updated_at":"2025-04-11T02:32:16.080Z","avatar_url":"https://github.com/WPBP.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CPT Columns\n[![License](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](http://www.gnu.org/licenses/gpl-3.0)\n![Downloads](https://img.shields.io/packagist/dt/wpbp/cpt_columns.svg) \n\nImprove the CPT list in the backend for your CPTs\n\n## Install\n\n`composer require wpbp/cpt_columns:dev-master`\n\n[composer-php52](https://github.com/composer-php52/composer-php52) supported.\n\n## Example\n\n```php\n$post_columns = new CPT_columns( 'demo' );\n$post_columns-\u003eadd_column( 'cmb2_field', array(\n    'label' =\u003e __( 'CMB2 Field' ),\n    'type' =\u003e 'post_meta', //text, thumbnail, post_meta, author, custom_tax, custom_value\n    'meta_key' =\u003e '_demo_meta_text',\n    'orderby' =\u003e 'meta_value', // For WP-Query\n    'sortable' =\u003e true,\n    'prefix' =\u003e '\u003cb\u003e',\n    'suffix' =\u003e '\u003c/b\u003e',\n    'def' =\u003e 'Not defined', // Default value in case post meta not found\n    'order' =\u003e '-1' // This is the last column\n\t)\n);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpbp%2Fcpt_columns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwpbp%2Fcpt_columns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpbp%2Fcpt_columns/lists"}