{"id":21239860,"url":"https://github.com/horttcore/wp-content-templates","last_synced_at":"2026-05-05T22:32:26.530Z","repository":{"id":56985837,"uuid":"185945460","full_name":"Horttcore/wp-content-templates","owner":"Horttcore","description":"Gutenberg is capabable for defining default blocks for a new created post type.","archived":false,"fork":false,"pushed_at":"2019-05-10T08:53:28.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-05T09:45:38.314Z","etag":null,"topics":["composer","gutenberg","template","wordpress"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Horttcore.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-10T08:00:20.000Z","updated_at":"2019-05-23T11:43:43.000Z","dependencies_parsed_at":"2022-08-21T12:20:44.608Z","dependency_job_id":null,"html_url":"https://github.com/Horttcore/wp-content-templates","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Horttcore%2Fwp-content-templates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Horttcore%2Fwp-content-templates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Horttcore%2Fwp-content-templates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Horttcore%2Fwp-content-templates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Horttcore","download_url":"https://codeload.github.com/Horttcore/wp-content-templates/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243681003,"owners_count":20330155,"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","gutenberg","template","wordpress"],"created_at":"2024-11-21T00:45:59.941Z","updated_at":"2026-05-05T22:32:26.496Z","avatar_url":"https://github.com/Horttcore.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Content Templates\n\nGutenberg is capabable for defining default blocks for a new created post type.\n\n## Installation\n\n`$ composer require horttcore/wp-content-templates`\n\n## Documentation\n\n```php\n\u003c?php\n/**\n * @param string $postType Post type\n * @param array $template Template\n * @param string $templateLock Lock template empty string, all or insert\n *      all — prevents all operations. It is not possible to insert new blocks, move existing blocks, or delete blocks.\n *      insert — prevents inserting or removing blocks, but allows moving existing blocks.\n */\nContentTemplate( string $postType, array $blocks [, string $templateLock \u003c'insert'|'all'\u003e] );\n```\n\n## Example\n\n```php\n\u003c?php\nuse Horttcore\\ContentTemplates\\ContentTemplate;\n\nnew ContentTemplate('post', [\n    [\n        [ 'core/image', {} ],\n        [ 'core/paragraph', { placeholder: 'Image Details' } ],\n    ]\n])-\u003eregister();\n```\n\n## Changelog\n\n### v1.0.2 - 2019/05/10\n\n-   Small fix\n\n### v1.0.1 - 2019/05/10\n\n-   Changed: Parameter `$blocks` is required in the constructor\n-   Improved documentation\n\n### v1.0 - 2019/05/09\n\n-   Initial release\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhorttcore%2Fwp-content-templates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhorttcore%2Fwp-content-templates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhorttcore%2Fwp-content-templates/lists"}