{"id":19951289,"url":"https://github.com/palmtreephp/wp-custom-post-type","last_synced_at":"2025-05-03T18:33:58.697Z","repository":{"id":57035259,"uuid":"85843496","full_name":"palmtreephp/wp-custom-post-type","owner":"palmtreephp","description":":palm_tree: WordPress custom post type class","archived":false,"fork":false,"pushed_at":"2022-05-30T11:01:51.000Z","size":30,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T19:51:55.759Z","etag":null,"topics":["composer-package","php","wordpress","wordpress-custom-post-type"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/palmtreephp.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}},"created_at":"2017-03-22T15:18:09.000Z","updated_at":"2022-05-30T10:41:06.000Z","dependencies_parsed_at":"2022-08-23T20:50:55.908Z","dependency_job_id":null,"html_url":"https://github.com/palmtreephp/wp-custom-post-type","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palmtreephp%2Fwp-custom-post-type","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palmtreephp%2Fwp-custom-post-type/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palmtreephp%2Fwp-custom-post-type/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palmtreephp%2Fwp-custom-post-type/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/palmtreephp","download_url":"https://codeload.github.com/palmtreephp/wp-custom-post-type/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251711895,"owners_count":21631297,"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":["composer-package","php","wordpress","wordpress-custom-post-type"],"created_at":"2024-11-13T01:07:26.479Z","updated_at":"2025-05-03T18:33:58.433Z","avatar_url":"https://github.com/palmtreephp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# :palm_tree: WordPress Custom Post Types\n\n[![License](http://img.shields.io/packagist/l/palmtree/curl.svg)](LICENSE)\n\nLibrary to assist in the creation of custom post types within WordPress.\n\n## Requirements\n* PHP \u003e= 7.1\n\n## Installation\nUse composer to add the package to your dependencies:\n```bash\ncomposer require palmtree/wp-custom-post-type\n```\n\n## Usage\n\n### Basic Usage\n```php\n\u003c?php\nuse Palmtree\\WordPress\\CustomPostType\\CustomPostType;\n\n$project = new CustomPostType('project');\n\n$callToAction = new CustomPostType([\n    'post_type' =\u003e 'cta',\n    'public' =\u003e false,\n]);\n```\n\n### Advanced Usage\n```php\n\u003c?php\nuse Palmtree\\WordPress\\CustomPostType\\CustomPostType;\n\n$project = new CustomPostType([\n    'post_type' =\u003e 'project',\n    'front' =\u003e 'my-projects',\n    'taxonomies' =\u003e [\n        [\n            'name' =\u003e 'Project Tags',\n            'hierarchical' =\u003e false,\n        ],\n        [\n            'name' =\u003e 'Project Categories',\n            'singluar_name' =\u003e 'Project Category',\n        ]\n    ],\n]);\n```\n\n## License\nReleased under the [MIT license](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpalmtreephp%2Fwp-custom-post-type","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpalmtreephp%2Fwp-custom-post-type","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpalmtreephp%2Fwp-custom-post-type/lists"}