{"id":16850747,"url":"https://github.com/hugopoi/wp-notification-store","last_synced_at":"2025-03-18T08:42:43.888Z","repository":{"id":149665218,"uuid":"96452660","full_name":"HugoPoi/wp-notification-store","owner":"HugoPoi","description":"Notification Store Addon for Wordpress Notification plugin by Kubitomakita","archived":false,"fork":false,"pushed_at":"2017-08-01T17:02:01.000Z","size":11,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-24T15:14:15.031Z","etag":null,"topics":["notifications-plugin","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HugoPoi.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-06T16:54:11.000Z","updated_at":"2017-07-20T10:57:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"a7d7218b-ffb2-407c-90e4-3607ac6236f6","html_url":"https://github.com/HugoPoi/wp-notification-store","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/HugoPoi%2Fwp-notification-store","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HugoPoi%2Fwp-notification-store/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HugoPoi%2Fwp-notification-store/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HugoPoi%2Fwp-notification-store/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HugoPoi","download_url":"https://codeload.github.com/HugoPoi/wp-notification-store/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244188302,"owners_count":20412977,"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":["notifications-plugin","wordpress-plugin"],"created_at":"2024-10-13T13:23:55.080Z","updated_at":"2025-03-18T08:42:43.868Z","avatar_url":"https://github.com/HugoPoi.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Notification : Store\n\nThis is public repository for Notification : Store - the WordPress plugin.\n\nThis plugin allows to store notification in database sent by Notification plugin.\n\n## Features\n\n* Store notification with custom post type `notification_stored`\n* Can store an alternative message in custom post content\n* Option to disable sending notification and only store them\n* Use `WP_Query` to display notifications\n* Mark them read with set `post_status` pending -\u003e publish\n\n## Requirements\n\n* THIS PLUGIN REQUIRE [Advanced Custom Fields](https://wordpress.org/plugins/advanced-custom-fields/)\n\n## Usage\n\n```\n\u003c?php $notifications = new WP_Query(array(\n  'post_type' =\u003e 'notification_stored',\n  'post_status' =\u003e array('pending', 'publish'), // For displaying unread\nand read notifications\n  'author' =\u003e get_current_user_id(),\n  'posts_per_page' =\u003e -1\n)); ?\u003e\n\u003c?php while($notifications-\u003ehave_posts()): $notifications-\u003ethe_post(); ?\u003e\n\u003c?php if(get_post_status() === 'pending') wp_publish_post(get_the_id()); // Mark notification read when displayed ?\u003e\n\u003cdiv class=\"Dashboard-activity\"\u003e\n  \u003cdiv class=\"Dashboard-activity-thumb\"\u003e\u003c?php echo get_avatar(get_field('author_email')); ?\u003e\u003c/div\u003e\n  \u003cdiv class=\"Dashboard-activity-desc\"\u003e\n    \u003ch3 class=\"Dashboard-activity-title\"\u003e\u003c?php the_title(); ?\u003e\u003c/h3\u003e\n    \u003c?php the_content(); ?\u003e\n  \u003c/div\u003e\n  \u003cdiv class=\"Dashboard-activity-time\"\u003e\u003c?php the_time(get_option( 'date_format' )); ?\u003e \u003c?php the_time(); ?\u003e\u003c/div\u003e\n\u003c/div\u003e\n\u003c?php endwhile; wp_reset_postdata(); ?\u003e\n```\n\n---\n\n* [Notification plugin](https://github.com/Kubitomakita/Notification)\n* [WordPress readme](https://github.com/HugoPoi/wp-notification-store/blob/master/readme.txt)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugopoi%2Fwp-notification-store","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhugopoi%2Fwp-notification-store","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugopoi%2Fwp-notification-store/lists"}