{"id":20055000,"url":"https://github.com/devbeno/agency","last_synced_at":"2026-06-11T10:31:09.666Z","repository":{"id":223935152,"uuid":"761048775","full_name":"devbeno/agency","owner":"devbeno","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-24T13:09:24.000Z","size":381,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-02T09:26:57.401Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://agency-nmba92.vercel.app","language":"Svelte","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/devbeno.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-21T06:22:20.000Z","updated_at":"2024-02-24T13:12:25.000Z","dependencies_parsed_at":"2024-02-22T21:24:01.928Z","dependency_job_id":"744b5800-44bd-4950-b090-321ecfa0511a","html_url":"https://github.com/devbeno/agency","commit_stats":null,"previous_names":["devbens/agency","devbeno/agency"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devbeno/agency","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devbeno%2Fagency","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devbeno%2Fagency/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devbeno%2Fagency/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devbeno%2Fagency/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devbeno","download_url":"https://codeload.github.com/devbeno/agency/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devbeno%2Fagency/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34195112,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-13T12:45:15.535Z","updated_at":"2026-06-11T10:31:09.643Z","avatar_url":"https://github.com/devbeno.png","language":"Svelte","funding_links":[],"categories":[],"sub_categories":[],"readme":"## function.php\n\nThis function will edit the wp-json API, and when you fetch the API, it will show only the following fields: id, title, content, excerpt, date, author, and slug.\n\n```bash\n// Modify REST API response to include only necessary post data\nfunction custom_modify_rest_post_data($data, $post, $request) {\n// Initialize an empty array to store modified data\n$modified_data = array();\n\n// Add necessary post data to the modified array\n$modified_data['id'] = $data-\u003edata['id'];\n$modified_data['title'] = $data-\u003edata['title']['rendered'];\n$modified_data['content'] = $data-\u003edata['content']['rendered'];\n$modified_data['excerpt'] = $data-\u003edata['excerpt']['rendered'];\n$modified_data['date'] = $data-\u003edata['date'];\n$modified_data['author'] = $data-\u003edata['author'];\n$modified_data['slug'] = $data-\u003edata['slug'];\n\n// Add featured image URL if available\nif (isset($data-\u003edata['featured_media']) \u0026\u0026 $data-\u003edata['featured_media'] !== 0) {\n$featured_image_id = $data-\u003edata['featured_media'];\n$featured_image_url = wp_get_attachment_image_src($featured_image_id, 'full');\nif ($featured_image_url) {\n$modified_data['featured_image_url'] = $featured_image_url[0];\n}\n}\n\n// Return modified data\nreturn $modified_data;\n}\n\nadd_filter('rest_prepare_post', 'custom_modify_rest_post_data', 10, 3);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevbeno%2Fagency","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevbeno%2Fagency","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevbeno%2Fagency/lists"}