{"id":44003419,"url":"https://github.com/j7-dev/wp-plugin","last_synced_at":"2026-02-07T13:05:54.865Z","repository":{"id":217671443,"uuid":"742026126","full_name":"j7-dev/wp-plugin","owner":"j7-dev","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-17T07:32:09.000Z","size":191,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-17T08:31:40.482Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/j7-dev.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-01-11T15:57:54.000Z","updated_at":"2025-06-17T07:32:12.000Z","dependencies_parsed_at":"2024-04-14T17:31:07.052Z","dependency_job_id":"967be174-370a-48a3-87ab-b432f909fe07","html_url":"https://github.com/j7-dev/wp-plugin","commit_stats":null,"previous_names":["j7-dev/wp-plugin"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/j7-dev/wp-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j7-dev%2Fwp-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j7-dev%2Fwp-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j7-dev%2Fwp-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j7-dev%2Fwp-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/j7-dev","download_url":"https://codeload.github.com/j7-dev/wp-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j7-dev%2Fwp-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29194567,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T12:38:28.597Z","status":"ssl_error","status_checked_at":"2026-02-07T12:38:23.888Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2026-02-07T13:05:54.806Z","updated_at":"2026-02-07T13:05:54.854Z","avatar_url":"https://github.com/j7-dev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# My Plugin | 我的 WordPress 外掛\n一句話講完 My Plugin :\n\n\u003e 這是一個 WordPress 外掛的範本，可以用來開發新的外掛。\n\n\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e\n\n## ⚡ 主要功能\n\n#### 1. 整合 TGM Plugin\n\n功能: 方便你依賴其他外掛，詳情可以參考[說明](http://tgmpluginactivation.com/configuration/)\n\n\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e\n\n#### 2. 整合 plugin-update-checker\n\n功能: 當你在 github release 時，可以自動通知使用者更新，詳情可以參考[說明](https://github.com/YahnisElsts/plugin-update-checker)\n\n\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e\n\n## 用法\n\n#### 請先執行 composer install 安裝依賴\n\n\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e\n\n#### 如果你依賴多個 plugins ，需要在 `check_required_plugins` 判斷是否都已經啟用\n\n```php\npublic function check_required_plugins()\n{\n\tself::$is_all_plugins_activated = \\class_exists(self::WOOCOMMERCE_CLASS);\n\n\tif (self::$is_all_plugins_activated) {\n\t\tnew Bootstrap();\n\t}\n}\n```\n\n\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e\n\n#### 在 Utils 定義常數\n\n```php\nconst APP_NAME            = 'My Plugin';\nconst KEBAB               = 'my-plugin';\nconst SNAKE               = 'my_plugin';\nconst GITHUB_REPO         = 'https://github.com/j7-dev/wp-plugin';\n```\n\n\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj7-dev%2Fwp-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fj7-dev%2Fwp-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj7-dev%2Fwp-plugin/lists"}