{"id":42520749,"url":"https://github.com/badasswp/display-site-notification-bar","last_synced_at":"2026-01-28T15:18:13.272Z","repository":{"id":303710799,"uuid":"1016362665","full_name":"badasswp/display-site-notification-bar","owner":"badasswp","description":"Display a notice bar on your WP home page.","archived":false,"fork":false,"pushed_at":"2025-09-27T09:48:29.000Z","size":1220,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-30T01:44:44.870Z","etag":null,"topics":["bar","notice","plugin","wordpress"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/badasswp.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-08T22:42:33.000Z","updated_at":"2025-10-02T09:20:59.000Z","dependencies_parsed_at":"2025-07-09T03:24:47.049Z","dependency_job_id":"004edd06-e789-4e39-842c-86da721e315e","html_url":"https://github.com/badasswp/display-site-notification-bar","commit_stats":null,"previous_names":["badasswp/site-notification-bar"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/badasswp/display-site-notification-bar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badasswp%2Fdisplay-site-notification-bar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badasswp%2Fdisplay-site-notification-bar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badasswp%2Fdisplay-site-notification-bar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badasswp%2Fdisplay-site-notification-bar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/badasswp","download_url":"https://codeload.github.com/badasswp/display-site-notification-bar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badasswp%2Fdisplay-site-notification-bar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28846204,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T15:15:36.453Z","status":"ssl_error","status_checked_at":"2026-01-28T15:15:13.020Z","response_time":57,"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":["bar","notice","plugin","wordpress"],"created_at":"2026-01-28T15:18:12.743Z","updated_at":"2026-01-28T15:18:13.255Z","avatar_url":"https://github.com/badasswp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# display-site-notification-bar\n\nDisplay a notice bar on your WP home page.\n\n\u003cimg width=\"640\" alt=\"display-site-notification-bar\" src=\"https://github.com/user-attachments/assets/4f4bff9e-c2ea-4afe-8012-1dc736ab17ef\" /\u003e\n\n## Why Display Site Notification Bar?\n\nThis plugin makes it super easy to display a notifiction bar on the front-end. It also allows you to customize how the notification bar looks like.\n\n\u003cimg width=\"720\" alt=\"display-site-notification-bar-settings\" src=\"https://github.com/user-attachments/assets/1e227f6e-ee54-4e57-81fd-45f0a7aa7c4b\" /\u003e\n\n### Hooks\n\n#### `display_site_notification_bar_admin_fields`\n\nThis custom hook (filter) provides a way to filter the admin fields presented on the options page of the plugin.\n\n```php\nadd_filter( 'display_site_notification_bar_admin_fields', [ $this, 'custom_admin_fields' ] );\n\npublic function custom_admin_fields( $fields ): array {\n    $fields[] = [\n        'name'    =\u003e 'name_of_your_control',\n        'label'   =\u003e __( 'Control Label', 'your-text-domain' ),\n        'cb'      =\u003e [ $this, 'name_of_your_control_callback' ],\n        'page'    =\u003e 'display-site-notification-bar',\n        'section' =\u003e 'site_notice_section',\n    ];\n\n    return $fields;\n}\n```\n\n**Parameters**\n\n- fields _`{array}`_ By default this will be an array containing key, value options for the control.\n\u003cbr/\u003e\n\n#### `display_site_notification_bar_settings`\n\nThis custom hook (filter) provides a way to customise the settings used by the notification bar.\n\n```php\nadd_filter( 'display_site_notification_bar_settings', [ $this, 'custom_bar_settings' ] );\n\npublic function bar_settings( $settings ): array {\n    $settings['site_notice_text'] = esc_html(\n        'Lorem ipsum doloar sit amet \u003ca href=\"example.com\"/\u003eaquila siento\u003c/a\u003e'\n    );\n\n    return $settings;\n}\n```\n\n**Parameters**\n\n- settings _`{array}`_ By default this will be an associative array containing key, value options of the settings used by the notification bar on the front-end.\n\u003cbr/\u003e\n\n## Contribute\n\nContributions are __welcome__ and will be fully __credited__. To contribute, please fork this repo and raise a PR (Pull Request) against the `master` branch.\n\n### Pre-requisites\n\nYou should have the following tools before proceeding to the next steps:\n\n- Composer\n- Yarn\n- Docker\n\nTo enable you start development, please run:\n\n```bash\nyarn start\n```\n\nThis should spin up a local WP env instance for you to work with at:\n\n```bash\nhttp://display-site-notification-bar.localhost:8484\n```\n\nYou should now have a functioning local WP env to work with. To login to the `wp-admin` backend, please use `admin` for username \u0026 `password` for password.\n\n__Awesome!__ - Thanks for being interested in contributing your time and code to this project!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbadasswp%2Fdisplay-site-notification-bar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbadasswp%2Fdisplay-site-notification-bar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbadasswp%2Fdisplay-site-notification-bar/lists"}