{"id":21611515,"url":"https://github.com/underpin-wp/admin-notice-loader","last_synced_at":"2026-05-18T15:37:09.362Z","repository":{"id":57075277,"uuid":"363942982","full_name":"Underpin-WP/admin-notice-loader","owner":"Underpin-WP","description":"Adds admin notices to WordPress admin area.","archived":false,"fork":false,"pushed_at":"2021-11-24T21:30:11.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-08T01:01:52.168Z","etag":null,"topics":["admin-notices","underpin","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/Underpin-WP.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":"2021-05-03T13:42:48.000Z","updated_at":"2021-11-23T16:24:54.000Z","dependencies_parsed_at":"2022-08-24T14:55:41.538Z","dependency_job_id":null,"html_url":"https://github.com/Underpin-WP/admin-notice-loader","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/Underpin-WP%2Fadmin-notice-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Underpin-WP%2Fadmin-notice-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Underpin-WP%2Fadmin-notice-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Underpin-WP%2Fadmin-notice-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Underpin-WP","download_url":"https://codeload.github.com/Underpin-WP/admin-notice-loader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244257304,"owners_count":20424131,"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":["admin-notices","underpin","wordpress"],"created_at":"2024-11-24T21:12:59.658Z","updated_at":"2026-05-18T15:37:09.310Z","avatar_url":"https://github.com/Underpin-WP.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Underpin Admin Notice Loader\n\nLoader That assists with adding admin notices to a WordPress website.\n\n## Installation\n\n### Using Composer\n\n`composer require underpin/admin-notice-loader`\n\n### Manually\n\nThis plugin uses a built-in autoloader, so as long as it is required _before_\nUnderpin, it should work as-expected.\n\n`require_once(__DIR__ . '/underpin-admin-notices/admin-notices.php');`\n\n## Setup\n\n1. Install Underpin. See [Underpin Docs](https://www.github.com/underpin-wp/underpin)\n1. Register new admin notices as-needed.\n\n## Example\n\nA very basic example could look something like this. This example would always display a notice on the settings page.\n\n```php\n\\Underpin\\underpin()-\u003eadmin_notices()-\u003eadd( 'example-notice', [\n\t'name'                    =\u003e 'Example notice',\n\t'description'             =\u003e 'This notice displays all the time.',\n\t'type'                    =\u003e 'notice',\n\t'is_dismissible'          =\u003e false,\n\t'wrapper_classes'         =\u003e [ 'class-1', 'class-2' ],\n\t'id'                      =\u003e 'example-notice',\n\t'message'                 =\u003e 'This will display all the time.',\n\t'should_display_callback' =\u003e '__return_true',\n] );\n```\n\nThis would display:\n![image](https://user-images.githubusercontent.com/8210827/116904222-469c0f00-abf2-11eb-89e6-5285f63defc3.png)\n\nAlternatively, you can extend `Admin_Notice` and reference the extended class directly, like so:\n\n```php\nunderpin()-\u003eadmin_notices()-\u003eadd('key','Namespace\\To\\Class');\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funderpin-wp%2Fadmin-notice-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funderpin-wp%2Fadmin-notice-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funderpin-wp%2Fadmin-notice-loader/lists"}