{"id":19401381,"url":"https://github.com/onthegosystems/wpml-synchronize-post-status","last_synced_at":"2025-04-24T07:30:41.197Z","repository":{"id":73987335,"uuid":"348342702","full_name":"OnTheGoSystems/wpml-synchronize-post-status","owner":"OnTheGoSystems","description":"Keep the status of a post in sync with its translations.","archived":false,"fork":false,"pushed_at":"2025-04-07T15:20:55.000Z","size":6,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-07T16:34:00.544Z","etag":null,"topics":[],"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/OnTheGoSystems.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":"2021-03-16T12:40:38.000Z","updated_at":"2025-04-07T15:21:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"5f1c7e66-af15-4c7f-ac56-031411cc1364","html_url":"https://github.com/OnTheGoSystems/wpml-synchronize-post-status","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OnTheGoSystems%2Fwpml-synchronize-post-status","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OnTheGoSystems%2Fwpml-synchronize-post-status/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OnTheGoSystems%2Fwpml-synchronize-post-status/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OnTheGoSystems%2Fwpml-synchronize-post-status/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OnTheGoSystems","download_url":"https://codeload.github.com/OnTheGoSystems/wpml-synchronize-post-status/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250582793,"owners_count":21453914,"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":[],"created_at":"2024-11-10T11:18:16.557Z","updated_at":"2025-04-24T07:30:41.190Z","avatar_url":"https://github.com/OnTheGoSystems.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WPML Synchronize Status\n\n## Disclaimer\n\nUsers may ask for a feature that we won't or can't add to our plugins for several reasons (low demand or higher priorities).\n\nSometimes, we create feature plugins that address one or more of these features.\n\nHowever, OnTheGoSystem cannot ensure support for such plugins unless we decide to merge them into the core plugins.\n\nOn the other hand, these plugins are public, and everyone is welcome to contribute.\n\n## Feature\n\nWhen updating the status of an original post, this plugin synchronizes all the translations accordingly.\n\nIt won't update the status of an original post when updating the translation. In other words, the synchronization works only in one direction.\n\n## Installation\n\nJust copy the whole project in the \"plugins\" directory of your WordPress site, then activate the plugin from your website's Plugins page.\n\n## Configuration\n\nIn the current iteration, the plugin has no customizable settings.\n\nHowever, you can configure the post types to keep in sync using one or both options:\n\n- In `wp-config.php`, define a constant called `WPML_SYNCHRONIZE_POST_STATUS_POST_TYPES`, containing either an array or a comma-separated list of custom post type names.  \n  Example: `define( WPML_SYNCHRONIZE_POST_STATUS_POST_TYPES , 'post,page');`\n- Hook to the `wpml_synchronize_post_status_post_types` filter. This filter receives the current list of post types.  \n  Example: `add_filter( 'wpml_synchronize_post_status_post_types', function( $allowed_post_types ) { return array_merge($allowed_post_types, [ 'products' ]); } )`\n\nYou can also blacklist post types so they are not synchronized:\n\n- Hook to the `wpml_synchronize_post_status_post_types_exclude` filter. This filter receives the current list of post types to exclude.  \n  Example: `add_filter( 'wpml_synchronize_post_status_post_types_exclude', function( $excluded_post_types ) { return array_merge($excluded_post_types, [ 'books' ]); } )`\n\nBy default, the array of allowed posts types is empty. That means that all post types will be kept in sync.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonthegosystems%2Fwpml-synchronize-post-status","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonthegosystems%2Fwpml-synchronize-post-status","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonthegosystems%2Fwpml-synchronize-post-status/lists"}