{"id":19107790,"url":"https://github.com/alleyinteractive/wp-modified-date-control","last_synced_at":"2026-04-01T21:06:35.456Z","repository":{"id":251272734,"uuid":"836915730","full_name":"alleyinteractive/wp-modified-date-control","owner":"alleyinteractive","description":"Control the modified date for a post in Gutenberg.","archived":false,"fork":false,"pushed_at":"2026-03-02T14:33:22.000Z","size":7121,"stargazers_count":3,"open_issues_count":7,"forks_count":0,"subscribers_count":17,"default_branch":"develop","last_synced_at":"2026-03-28T00:36:41.973Z","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":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alleyinteractive.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":"2024-08-01T20:34:31.000Z","updated_at":"2026-02-28T02:28:09.000Z","dependencies_parsed_at":"2024-09-14T23:41:02.723Z","dependency_job_id":"9dae590f-6a80-4b2b-bb40-dc8fa92df8cf","html_url":"https://github.com/alleyinteractive/wp-modified-date-control","commit_stats":null,"previous_names":["alleyinteractive/wp-modified-date-control"],"tags_count":4,"template":false,"template_full_name":"alleyinteractive/create-wordpress-plugin","purl":"pkg:github/alleyinteractive/wp-modified-date-control","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alleyinteractive%2Fwp-modified-date-control","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alleyinteractive%2Fwp-modified-date-control/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alleyinteractive%2Fwp-modified-date-control/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alleyinteractive%2Fwp-modified-date-control/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alleyinteractive","download_url":"https://codeload.github.com/alleyinteractive/wp-modified-date-control/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alleyinteractive%2Fwp-modified-date-control/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31292001,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T13:12:26.723Z","status":"ssl_error","status_checked_at":"2026-04-01T13:12:25.102Z","response_time":53,"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":["wordpress","wordpress-plugin"],"created_at":"2024-11-09T04:13:59.667Z","updated_at":"2026-04-01T21:06:35.447Z","avatar_url":"https://github.com/alleyinteractive.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Modified Date Control\n\nContributors: alleyinteractive\n\nTags: alleyinteractive, wp-modified-date-control\n\nStable tag: 1.1.1\n\nRequires at least: 5.9\n\nTested up to: 6.1\n\nRequires PHP: 8.2\n\nLicense: GPL v2 or later\n\n[![Testing Suite](https://github.com/alleyinteractive/wp-modified-date-control/actions/workflows/all-pr-tests.yml/badge.svg)](https://github.com/alleyinteractive/wp-modified-date-control/actions/workflows/all-pr-tests.yml)\n\nControl the modified date for a post with Gutenberg.\n\n## Installation\n\nYou can install the package via Composer:\n\n```bash\ncomposer require alleyinteractive/wp-modified-date-control\n```\n\n## Usage\n\nActivate the plugin in WordPress and you will see a new panel available under\nthe \"Summary\" section in Gutenberg:\n\n![Screenshot](./assets/screenshot.png)\n\nThe panel will allow you to set a modified date for a post or allow the modified\ndate to be set to the current date and time upon update. Out of the box, the\nplugin will continue to allow updates to the modified date unless disabled on a\nper-post basis.\n\nIf you check `Allow Updates to Modified`, the modified date will be set to the\ncurrent date and time when the post is updated. You will be unable to set your\nown modified date. If you uncheck the box, you will be able to set your own\nmodified date. Saving the post will not cause the modified date to be updated,\neither, unless you manually updated it.\n\n\u003e [!NOTE]\n\u003e This plugin does not have support for non-Gutenberg editors.\n\n### Filters\n\n#### `wp_modified_date_control_default_allow_updates`\n\nModify the default state of allowing updates to a post's modified date when\nsaving the post.\n\nDefaults to true. Changing this to `false` would prevent updates to the modified\ndate unless the user opts into it.\n\n```php\n// Disable updates to the modified date by default.\nadd_filter( 'wp_modified_date_control_default_allow_updates', fn () =\u003e false );\n```\n\n#### `wp_modified_date_control_prevent_updates`\n\nModify the default behavior of the plugin to allow/deny updates to the modified\ndate. By default, the plugin will prevent updates if the meta to allow updates\nis set to `'false'`. This filter allows you to override that behavior.\n\n```php\nadd_filter( 'wp_modified_date_control_prevent_updates', function( bool $prevent, int $post_id, ?\\WP_REST_Request $request ) {\n\t// Always allow updates to the modified date.\n\treturn false;\n}, 10, 3 );\n```\n\n## Testing\n\nRun `npm run test` to run Jest tests against JavaScript files. Run\n`npm run test:watch` to keep the test runner open and watching for changes.\n\nRun `npm run lint` to run ESLint against all JavaScript files. Linting will also\nhappen when running development or production builds.\n\nRun `composer test` to run tests against PHPUnit and the PHP code in the plugin.\nUnit testing code is written in PSR-4 format and can be found in the `tests`\ndirectory.\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Credits\n\nThis project is actively maintained by [Alley\nInteractive](https://github.com/alleyinteractive). Like what you see? [Come work\nwith us](https://alley.com/careers/).\n\n- [Sean Fisher](https://github.com/srtfisher)\n- [All Contributors](../../contributors)\n\n## License\n\nThe GNU General Public License (GPL) license. Please see [License File](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falleyinteractive%2Fwp-modified-date-control","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falleyinteractive%2Fwp-modified-date-control","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falleyinteractive%2Fwp-modified-date-control/lists"}