{"id":22606608,"url":"https://github.com/benjaminmedia/wp-bonnier-redirect","last_synced_at":"2026-02-26T03:43:46.122Z","repository":{"id":24079808,"uuid":"100576663","full_name":"BenjaminMedia/wp-bonnier-redirect","owner":"BenjaminMedia","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-22T13:14:03.000Z","size":734,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-04-11T05:15:16.865Z","etag":null,"topics":["wordpress-plugin"],"latest_commit_sha":null,"homepage":null,"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/BenjaminMedia.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}},"created_at":"2017-08-17T07:49:30.000Z","updated_at":"2024-11-22T11:12:15.000Z","dependencies_parsed_at":"2023-11-28T14:26:29.595Z","dependency_job_id":"e1ce0142-7a07-4552-8b85-0b4bafd170de","html_url":"https://github.com/BenjaminMedia/wp-bonnier-redirect","commit_stats":{"total_commits":226,"total_committers":14,"mean_commits":"16.142857142857142","dds":0.5796460176991151,"last_synced_commit":"aa8ccf452093954ed1cfe0242710c535590b67f7"},"previous_names":[],"tags_count":99,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenjaminMedia%2Fwp-bonnier-redirect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenjaminMedia%2Fwp-bonnier-redirect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenjaminMedia%2Fwp-bonnier-redirect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenjaminMedia%2Fwp-bonnier-redirect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BenjaminMedia","download_url":"https://codeload.github.com/BenjaminMedia/wp-bonnier-redirect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248345268,"owners_count":21088245,"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":["wordpress-plugin"],"created_at":"2024-12-08T14:14:18.652Z","updated_at":"2026-02-26T03:43:46.092Z","avatar_url":"https://github.com/BenjaminMedia.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wp-bonnier-redirect\n\nA requirement to use this plugin is custom-redirects\n\n\n### Importing\n\nTo import aliases and redirect you must run the following commands\n\n`wp bonnier redirect import redirect GDS-path_redirect-20170814.csv`\n\nand\n\n`wp bonnier redirect import alias GDS-url_alias-20170814.csv`\n\n### Filters\nThis plugin exposes the following filters:\n\n`redirect/slug-is-live | Bonnier\\WP\\Redirect\\WPBonnierRedirect::FILTER_SLUG_IS_LIVE`:\n\nPerform your own validation on whether a url is live or not.\n\n```php\n/**\n * @param bool $isLive The plugins evaluation of whether the url is live or not\n * @param string $url The 'from'-url being saved\n * @param string $locale The locale of the redirect being saved\n * @param WP_Post|WP_Term|null $object The object found by the redirect plugin - null if $isLive == false\n *\n * @return bool\n */\nadd_filter('redirect/slug-is-live', function (bool $isLive, string $url, string $locale, $object) {\n    return $isLive;\n}, 10, 4);\n```\n\n### Actions\nThis plugin exposes the following actions:\n\n`redirect/redirect-saved | Bonnier\\WP\\Redirect\\WPBonnierRedirect::ACTION_REDIRECT_SAVED`:\n\nRegister an action, when a new redirect is saved.\n\n```php\n/**\n * @param Redirect $redirect The newly created redirect\n */\nadd_filter('redirect/redirect-saved', function (Redirect $redirect) {\n    // Do stuff with the newly created Redirect\n}, 10);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenjaminmedia%2Fwp-bonnier-redirect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenjaminmedia%2Fwp-bonnier-redirect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenjaminmedia%2Fwp-bonnier-redirect/lists"}