{"action":"created","issue":{"url":"https://api.github.com/repos/polylang/polylang/issues/292","repository_url":"https://api.github.com/repos/polylang/polylang","labels_url":"https://api.github.com/repos/polylang/polylang/issues/292/labels{/name}","comments_url":"https://api.github.com/repos/polylang/polylang/issues/292/comments","events_url":"https://api.github.com/repos/polylang/polylang/issues/292/events","html_url":"https://github.com/polylang/polylang/issues/292","id":353524471,"node_id":"MDU6SXNzdWUzNTM1MjQ0NzE=","number":292,"title":"wpml-config.xml override order","user":{"login":"strarsis","id":9271436,"node_id":"MDQ6VXNlcjkyNzE0MzY=","avatar_url":"https://avatars1.githubusercontent.com/u/9271436?v=4","gravatar_id":"","url":"https://api.github.com/users/strarsis","html_url":"https://github.com/strarsis","followers_url":"https://api.github.com/users/strarsis/followers","following_url":"https://api.github.com/users/strarsis/following{/other_user}","gists_url":"https://api.github.com/users/strarsis/gists{/gist_id}","starred_url":"https://api.github.com/users/strarsis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strarsis/subscriptions","organizations_url":"https://api.github.com/users/strarsis/orgs","repos_url":"https://api.github.com/users/strarsis/repos","events_url":"https://api.github.com/users/strarsis/events{/privacy}","received_events_url":"https://api.github.com/users/strarsis/received_events","type":"User","site_admin":false},"labels":[{"id":605500072,"node_id":"MDU6TGFiZWw2MDU1MDAwNzI=","url":"https://api.github.com/repos/polylang/polylang/labels/support","name":"support","color":"d93f0b","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-08-23T19:39:16Z","updated_at":"2018-09-14T17:54:37Z","closed_at":"2018-09-04T14:02:57Z","author_association":"NONE","body":"In what order are `wpml-config.xml` files of plugins applied? Can the order be influenced?\r\n\r\nI want to override a [specific setting](https://github.com/NateWr/food-and-drink-menu/blob/master/wpml-config.xml#L10) in a `wpml-config.xml` of a plugin \r\nusing a `wpml-config.xml` of a site-specific plugin, but the setting is ignored.\r\n\r\nIt works on another site with another named site-specific plugin, \r\nis the order affected by the name/ID of plugin?"},"comment":{"url":"https://api.github.com/repos/polylang/polylang/issues/comments/421436352","html_url":"https://github.com/polylang/polylang/issues/292#issuecomment-421436352","issue_url":"https://api.github.com/repos/polylang/polylang/issues/292","id":421436352,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMTQzNjM1Mg==","user":{"login":"strarsis","id":9271436,"node_id":"MDQ6VXNlcjkyNzE0MzY=","avatar_url":"https://avatars1.githubusercontent.com/u/9271436?v=4","gravatar_id":"","url":"https://api.github.com/users/strarsis","html_url":"https://github.com/strarsis","followers_url":"https://api.github.com/users/strarsis/followers","following_url":"https://api.github.com/users/strarsis/following{/other_user}","gists_url":"https://api.github.com/users/strarsis/gists{/gist_id}","starred_url":"https://api.github.com/users/strarsis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strarsis/subscriptions","organizations_url":"https://api.github.com/users/strarsis/orgs","repos_url":"https://api.github.com/users/strarsis/repos","events_url":"https://api.github.com/users/strarsis/events{/privacy}","received_events_url":"https://api.github.com/users/strarsis/received_events","type":"User","site_admin":false},"created_at":"2018-09-14T17:54:37Z","updated_at":"2018-09-14T17:54:37Z","author_association":"NONE","body":"@Chouby: The [Food and Drink Menu plugin](https://github.com/NateWr/food-and-drink-menu) uses `copy` action for the column fields. \r\nEach post translation has its own post ID, hence using the same post IDs across \r\ntranslations results in empty post list because the posts don't belong to \r\nthe language the menu is then translated for (and filtered out by Polylang).\r\n\r\nThis issue can be fixed by replacing the `copy` with `translate` action \r\n(https://github.com/NateWr/food-and-drink-menu/blob/master/wpml-config.xml#L10-11):\r\n```xml\r\n    <custom-field action=\"copy\">fdm_menu_column_one</custom-field>\r\n    <custom-field action=\"copy\">fdm_menu_column_two</custom-field>\r\n````\r\n\r\n```xml\r\n    <custom-field action=\"translate\">fdm_menu_column_one</custom-field>\r\n    <custom-field action=\"translate\">fdm_menu_column_two</custom-field>\r\n````\r\n\r\nRelated issue: https://github.com/NateWr/food-and-drink-menu/issues/50\r\n"}}
{"actor":{"display_login":"strarsis"}}