{"id":28313723,"url":"https://github.com/soranoo/wordpress-plugin-restrict-author-profile-access","last_synced_at":"2026-04-16T02:32:08.551Z","repository":{"id":212536693,"uuid":"731726727","full_name":"soranoo/WordPress-Plugin-Restrict-Author-Profile-Access","owner":"soranoo","description":"A simple script to restrict others user access certaint author profile.","archived":false,"fork":false,"pushed_at":"2023-12-16T16:17:40.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-26T10:21:31.150Z","etag":null,"topics":["wordpress","wordpress-plugin"],"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/soranoo.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}},"created_at":"2023-12-14T18:25:59.000Z","updated_at":"2023-12-17T18:41:04.000Z","dependencies_parsed_at":"2023-12-16T17:36:33.840Z","dependency_job_id":null,"html_url":"https://github.com/soranoo/WordPress-Plugin-Restrict-Author-Profile-Access","commit_stats":null,"previous_names":["soranoo/wordpress-plugin-restrict-author-profile-access"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/soranoo/WordPress-Plugin-Restrict-Author-Profile-Access","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soranoo%2FWordPress-Plugin-Restrict-Author-Profile-Access","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soranoo%2FWordPress-Plugin-Restrict-Author-Profile-Access/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soranoo%2FWordPress-Plugin-Restrict-Author-Profile-Access/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soranoo%2FWordPress-Plugin-Restrict-Author-Profile-Access/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soranoo","download_url":"https://codeload.github.com/soranoo/WordPress-Plugin-Restrict-Author-Profile-Access/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soranoo%2FWordPress-Plugin-Restrict-Author-Profile-Access/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31868494,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"online","status_checked_at":"2026-04-16T02:00:06.042Z","response_time":69,"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":["wordpress","wordpress-plugin"],"created_at":"2025-05-24T18:11:24.818Z","updated_at":"2026-04-16T02:32:08.522Z","avatar_url":"https://github.com/soranoo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WordPress-Plugin-Restrict-Author-Profile-Access\n\n[![MIT License](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)\u0026nbsp;\u0026nbsp;\u0026nbsp;[![Donation](https://img.shields.io/static/v1?label=Donation\u0026message=❤️\u0026style=social)](https://github.com/soranoo/Donation)\n\nA simple script to restrict others user access certaint author profile.\n\nThis is my first WordPress plugin. I'm still learning how to write a good plugin. If you have any suggestion, please let me know. Thank you.\n\n## 📷 Screenshot\n\n[![\"Screenshot\"](/docs/imgs/show-case-1.png)]()\n\n## 🚀 Installation\n\n#### Method 1: Treat as Plugin\n\n1. Download the `restrict_author_profile_access.php` file from this repository.\n2. Upload the file to your WordPress plugins directory, usually located at `wp-content/plugins/`.\n3. Navigate to the Plugins section in your WordPress admin panel and activate the \"Restrict Author Profile Access\" plugin.\n\n#### Method 2: Treat as Code Snippet\n\n1. Copy the code from the `restrict_author_profile_access.php` file.\n2. Navigate to the Code Snippets section in your WordPress admin panel.\n3. Add a new code snippet and paste the code into the code editor.\n4. Activate the code snippet.\n\n## 📝 Usage\n\n#### Setting Page\n\n1. Navigate to the Settings section in your WordPress admin panel.\n2. Click the \"Restrict Author Profile Access\" menu.\n\n#### Add New Restricted Author\n\n1. Select author(s) from the multi-select box.\n2. Click the \"Save Changes\" button.\n\n## 📖 API Reference\n\n### Check if the author profile is restricted\n\n```php\nwprapa_is_author_profile_restricted($author_id) : bool\n```\n\n| Parameter    | Type  | Description |\n| :----------- | :---- | :---------- |\n| `$author_id` | `int` | Author ID.  |\n\n##### Return\n\n| Type   | Description                                                    |\n| :----- | :------------------------------------------------------------- |\n| `bool` | `true` if the author profile is restricted, `false` otherwise. |\n\n#### Code Example\n\n```php\n$is_restricted_author = function_exists('wprapa_is_author_profile_restricted') ? wprapa_is_author_profile_restricted(get_the_author_meta('ID')) : false;\n```\n\n### Add restricted author\n\n```php\nwprapa_add_restricted_author($author_id) : void\n```\n\n| Parameter    | Type  | Description |\n| :----------- | :---- | :---------- |\n| `$author_id` | `int` | Author ID.  |\n\n### Remove restricted author\n\n```php\nwprapa_remove_restricted_author($author_id) : void\n```\n\n| Parameter    | Type  | Description |\n| :----------- | :---- | :---------- |\n| `$author_id` | `int` | Author ID.  |\n\n## 🐛 Known Issues\n\n- Waiting for your report.\n\n## ⭐ TODO\n\n- N/A\n\n## 🤝 Contributing\n\nContributions are welcome! If you find a bug, please open an issue. If you want to contribute code, please fork the repository and submit a pull request.\n\n## 📝 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\n\n## ☕ Donation\n\nLove it? Consider a donation to support my work.\n\n[![\"Donation\"](https://raw.githubusercontent.com/soranoo/Donation/main/resources/image/DonateBtn.png)](https://github.com/soranoo/Donation) \u003c- click me~\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoranoo%2Fwordpress-plugin-restrict-author-profile-access","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoranoo%2Fwordpress-plugin-restrict-author-profile-access","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoranoo%2Fwordpress-plugin-restrict-author-profile-access/lists"}