{"id":23774565,"url":"https://github.com/wpup/functions","last_synced_at":"2025-10-28T02:04:39.664Z","repository":{"id":57082431,"uuid":"154668653","full_name":"wpup/functions","owner":"wpup","description":"Bring functions into WordPress REST API","archived":false,"fork":false,"pushed_at":"2019-12-02T14:21:08.000Z","size":8,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-17T02:38:18.010Z","etag":null,"topics":["functions","rest-api","serverless","wordpress","wordpress-plugin"],"latest_commit_sha":null,"homepage":null,"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/wpup.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":"2018-10-25T12:40:59.000Z","updated_at":"2019-12-02T14:21:10.000Z","dependencies_parsed_at":"2022-08-24T14:58:20.649Z","dependency_job_id":null,"html_url":"https://github.com/wpup/functions","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpup%2Ffunctions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpup%2Ffunctions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpup%2Ffunctions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpup%2Ffunctions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wpup","download_url":"https://codeload.github.com/wpup/functions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232052268,"owners_count":18465727,"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":["functions","rest-api","serverless","wordpress","wordpress-plugin"],"created_at":"2025-01-01T06:15:48.518Z","updated_at":"2025-10-28T02:04:39.561Z","avatar_url":"https://github.com/wpup.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# REST API Functions\n\n[![No Maintenance Intended](http://unmaintained.tech/badge.svg)](http://unmaintained.tech/)\n\nBring functions into WordPress REST API.\n\n## Example\n\nCreate `hello.php` in `wp-content/themes/NAME/functions/hello.php`\n\n```php\n\u003c?php\n\nfunction handler($request) {\n\treturn 'Hello, world';\n}\n```\n\nCall it \n\n```shell\nGET /wp-json/functions/v1/hello\n\n\"Hello, world\"\n```\n\nSupported HTTP methods for each function file are:\n\n`GET, POST, PUT, PATCH, DELETE`\n\nNamespaces and classes are supported as well.\n\n```php\n\u003c?php\n\nnamespace MyNamespace;\n\nclass MyClass {\n\tpublic function handler($request) {\n\t\treturn 'Hello, world';\n\t}\n}\n```\n\n## Install\n\n```\ncomposer require wpup/functions\n```\n\n## Filters\n\nShort documenation about filters, read the source code to find out more about each filter.\n\n- `functions_file` - Modify file path\n- `functions_handle` - Modify function/method string name (that are used for `call_user_func`)\n- `functions_directories` - Modify which directories the plugin should scan for functions files. Default is `wp-content/themes/NAME/functions`\n\n## License\n\nMIT © [Fredrik Forsmo](https://github.com/frozzare)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpup%2Ffunctions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwpup%2Ffunctions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpup%2Ffunctions/lists"}