{"action":"created","comment":{"url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/pulls/comments/208896706","pull_request_review_id":144799445,"id":208896706,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwODg5NjcwNg==","diff_hunk":"@@ -0,0 +1,28 @@\n+<?php\n+\n+class WPML_Page_Builders_Page_Built {\n+\n+\tprivate $config;\n+\n+\tpublic function __construct( WPML_Config_Built_With_Page_Builders $config ) {\n+\t\t$this->config = $config;\n+\t}\n+\n+\t/**\n+\t * @param WP_Post $post\n+\t *\n+\t * @return bool\n+\t */\n+\tpublic function is_page_builder_page( WP_Post $post ) {\n+\t\t$result = false;\n+\t\t$config_data = $this->config->get();\n+\n+\t\tif ( is_array( $config_data ) ) {\n+\t\t\tforeach ( $config_data as $pattern ) {\n+\t\t\t\t$result = preg_match_all( $pattern, $post->post_content );","path":"src/utilities/class-wpml-page-builders-page-built-with-built.php","position":22,"original_position":22,"commit_id":"80af2da69c044ffc7fdfe7dea611599a0fd8652b","original_commit_id":"80af2da69c044ffc7fdfe7dea611599a0fd8652b","user":{"login":"adrianosferreira","id":4672632,"node_id":"MDQ6VXNlcjQ2NzI2MzI=","avatar_url":"https://avatars2.githubusercontent.com/u/4672632?v=4","gravatar_id":"","url":"https://api.github.com/users/adrianosferreira","html_url":"https://github.com/adrianosferreira","followers_url":"https://api.github.com/users/adrianosferreira/followers","following_url":"https://api.github.com/users/adrianosferreira/following{/other_user}","gists_url":"https://api.github.com/users/adrianosferreira/gists{/gist_id}","starred_url":"https://api.github.com/users/adrianosferreira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrianosferreira/subscriptions","organizations_url":"https://api.github.com/users/adrianosferreira/orgs","repos_url":"https://api.github.com/users/adrianosferreira/repos","events_url":"https://api.github.com/users/adrianosferreira/events{/privacy}","received_events_url":"https://api.github.com/users/adrianosferreira/received_events","type":"User","site_admin":false},"body":"@BruceOnTheGo this is somehow outdated, I've added an if in the end so if $result is true we left the loop. I will change that.","created_at":"2018-08-09T11:36:41Z","updated_at":"2018-08-09T11:36:41Z","html_url":"https://github.com/OnTheGoSystems/wpml-page-builders/pull/17#discussion_r208896706","pull_request_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/pulls/17","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/pulls/comments/208896706"},"html":{"href":"https://github.com/OnTheGoSystems/wpml-page-builders/pull/17#discussion_r208896706"},"pull_request":{"href":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/pulls/17"}},"in_reply_to_id":208792173},"pull_request":{"url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/pulls/17","id":206769702,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA2NzY5NzAy","html_url":"https://github.com/OnTheGoSystems/wpml-page-builders/pull/17","diff_url":"https://github.com/OnTheGoSystems/wpml-page-builders/pull/17.diff","patch_url":"https://github.com/OnTheGoSystems/wpml-page-builders/pull/17.patch","issue_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/issues/17","number":17,"state":"open","locked":false,"title":"Handling page builder page without translatable elements","user":{"login":"adrianosferreira","id":4672632,"node_id":"MDQ6VXNlcjQ2NzI2MzI=","avatar_url":"https://avatars2.githubusercontent.com/u/4672632?v=4","gravatar_id":"","url":"https://api.github.com/users/adrianosferreira","html_url":"https://github.com/adrianosferreira","followers_url":"https://api.github.com/users/adrianosferreira/followers","following_url":"https://api.github.com/users/adrianosferreira/following{/other_user}","gists_url":"https://api.github.com/users/adrianosferreira/gists{/gist_id}","starred_url":"https://api.github.com/users/adrianosferreira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrianosferreira/subscriptions","organizations_url":"https://api.github.com/users/adrianosferreira/orgs","repos_url":"https://api.github.com/users/adrianosferreira/repos","events_url":"https://api.github.com/users/adrianosferreira/events{/privacy}","received_events_url":"https://api.github.com/users/adrianosferreira/received_events","type":"User","site_admin":false},"body":"- Added a new filter `wpml_pb_post_content_translate` which can be used to say whether a post content is set as translatable or not (0 or 1). In this case I needed that to say that if a particular page is a page builder page then it should not send the post content for translations, but rather copy that.\r\n\r\n- Added some parameters into the existing fitler `wpml_pb_finished_adding_string_translations` so I'm able to copy the content of original post to translation when needed.\r\n\r\n- Added another action `wpml_pb_after_page_without_elements_post_content_copy` which will be used by other custom page builders like Elementor and Beaver Builder in order to copy needed custom fields when needed.\r\n\r\nhttps://onthegosystems.myjetbrains.com/youtrack/issue/wpmlpb-146","created_at":"2018-08-07T17:19:55Z","updated_at":"2018-08-09T11:36:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c9e98b866509c5e34ae927e583a794f5dc3b9d8b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/pulls/17/commits","review_comments_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/pulls/17/comments","review_comment_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/issues/17/comments","statuses_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/statuses/80af2da69c044ffc7fdfe7dea611599a0fd8652b","head":{"label":"OnTheGoSystems:wpmlpb-149","ref":"wpmlpb-149","sha":"80af2da69c044ffc7fdfe7dea611599a0fd8652b","user":{"login":"OnTheGoSystems","id":16096345,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2MDk2MzQ1","avatar_url":"https://avatars3.githubusercontent.com/u/16096345?v=4","gravatar_id":"","url":"https://api.github.com/users/OnTheGoSystems","html_url":"https://github.com/OnTheGoSystems","followers_url":"https://api.github.com/users/OnTheGoSystems/followers","following_url":"https://api.github.com/users/OnTheGoSystems/following{/other_user}","gists_url":"https://api.github.com/users/OnTheGoSystems/gists{/gist_id}","starred_url":"https://api.github.com/users/OnTheGoSystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OnTheGoSystems/subscriptions","organizations_url":"https://api.github.com/users/OnTheGoSystems/orgs","repos_url":"https://api.github.com/users/OnTheGoSystems/repos","events_url":"https://api.github.com/users/OnTheGoSystems/events{/privacy}","received_events_url":"https://api.github.com/users/OnTheGoSystems/received_events","type":"Organization","site_admin":false},"repo":{"id":117526446,"node_id":"MDEwOlJlcG9zaXRvcnkxMTc1MjY0NDY=","name":"wpml-page-builders","full_name":"OnTheGoSystems/wpml-page-builders","owner":{"login":"OnTheGoSystems","id":16096345,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2MDk2MzQ1","avatar_url":"https://avatars3.githubusercontent.com/u/16096345?v=4","gravatar_id":"","url":"https://api.github.com/users/OnTheGoSystems","html_url":"https://github.com/OnTheGoSystems","followers_url":"https://api.github.com/users/OnTheGoSystems/followers","following_url":"https://api.github.com/users/OnTheGoSystems/following{/other_user}","gists_url":"https://api.github.com/users/OnTheGoSystems/gists{/gist_id}","starred_url":"https://api.github.com/users/OnTheGoSystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OnTheGoSystems/subscriptions","organizations_url":"https://api.github.com/users/OnTheGoSystems/orgs","repos_url":"https://api.github.com/users/OnTheGoSystems/repos","events_url":"https://api.github.com/users/OnTheGoSystems/events{/privacy}","received_events_url":"https://api.github.com/users/OnTheGoSystems/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OnTheGoSystems/wpml-page-builders","description":"This library is used by WPML to handle page builders plugins and themes","fork":false,"url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders","forks_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/forks","keys_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/teams","hooks_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/hooks","issue_events_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/issues/events{/number}","events_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/events","assignees_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/assignees{/user}","branches_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/branches{/branch}","tags_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/tags","blobs_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/git/refs{/sha}","trees_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/statuses/{sha}","languages_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/languages","stargazers_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/stargazers","contributors_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/contributors","subscribers_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/subscribers","subscription_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/subscription","commits_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/commits{/sha}","git_commits_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/git/commits{/sha}","comments_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/comments{/number}","issue_comment_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/issues/comments{/number}","contents_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/contents/{+path}","compare_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/merges","archive_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/downloads","issues_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/issues{/number}","pulls_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/pulls{/number}","milestones_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/milestones{/number}","notifications_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/labels{/name}","releases_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/releases{/id}","deployments_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/deployments","created_at":"2018-01-15T09:43:43Z","updated_at":"2018-04-26T14:02:57Z","pushed_at":"2018-08-08T20:09:16Z","git_url":"git://github.com/OnTheGoSystems/wpml-page-builders.git","ssh_url":"git@github.com:OnTheGoSystems/wpml-page-builders.git","clone_url":"https://github.com/OnTheGoSystems/wpml-page-builders.git","svn_url":"https://github.com/OnTheGoSystems/wpml-page-builders","homepage":null,"size":132,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":7,"license":null,"forks":0,"open_issues":7,"watchers":0,"default_branch":"develop"}},"base":{"label":"OnTheGoSystems:wpmlpb-146","ref":"wpmlpb-146","sha":"23e9be2556ab1b75307e667f72fdb8fa69568370","user":{"login":"OnTheGoSystems","id":16096345,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2MDk2MzQ1","avatar_url":"https://avatars3.githubusercontent.com/u/16096345?v=4","gravatar_id":"","url":"https://api.github.com/users/OnTheGoSystems","html_url":"https://github.com/OnTheGoSystems","followers_url":"https://api.github.com/users/OnTheGoSystems/followers","following_url":"https://api.github.com/users/OnTheGoSystems/following{/other_user}","gists_url":"https://api.github.com/users/OnTheGoSystems/gists{/gist_id}","starred_url":"https://api.github.com/users/OnTheGoSystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OnTheGoSystems/subscriptions","organizations_url":"https://api.github.com/users/OnTheGoSystems/orgs","repos_url":"https://api.github.com/users/OnTheGoSystems/repos","events_url":"https://api.github.com/users/OnTheGoSystems/events{/privacy}","received_events_url":"https://api.github.com/users/OnTheGoSystems/received_events","type":"Organization","site_admin":false},"repo":{"id":117526446,"node_id":"MDEwOlJlcG9zaXRvcnkxMTc1MjY0NDY=","name":"wpml-page-builders","full_name":"OnTheGoSystems/wpml-page-builders","owner":{"login":"OnTheGoSystems","id":16096345,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2MDk2MzQ1","avatar_url":"https://avatars3.githubusercontent.com/u/16096345?v=4","gravatar_id":"","url":"https://api.github.com/users/OnTheGoSystems","html_url":"https://github.com/OnTheGoSystems","followers_url":"https://api.github.com/users/OnTheGoSystems/followers","following_url":"https://api.github.com/users/OnTheGoSystems/following{/other_user}","gists_url":"https://api.github.com/users/OnTheGoSystems/gists{/gist_id}","starred_url":"https://api.github.com/users/OnTheGoSystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OnTheGoSystems/subscriptions","organizations_url":"https://api.github.com/users/OnTheGoSystems/orgs","repos_url":"https://api.github.com/users/OnTheGoSystems/repos","events_url":"https://api.github.com/users/OnTheGoSystems/events{/privacy}","received_events_url":"https://api.github.com/users/OnTheGoSystems/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OnTheGoSystems/wpml-page-builders","description":"This library is used by WPML to handle page builders plugins and themes","fork":false,"url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders","forks_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/forks","keys_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/teams","hooks_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/hooks","issue_events_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/issues/events{/number}","events_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/events","assignees_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/assignees{/user}","branches_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/branches{/branch}","tags_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/tags","blobs_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/git/refs{/sha}","trees_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/statuses/{sha}","languages_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/languages","stargazers_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/stargazers","contributors_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/contributors","subscribers_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/subscribers","subscription_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/subscription","commits_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/commits{/sha}","git_commits_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/git/commits{/sha}","comments_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/comments{/number}","issue_comment_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/issues/comments{/number}","contents_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/contents/{+path}","compare_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/merges","archive_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/downloads","issues_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/issues{/number}","pulls_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/pulls{/number}","milestones_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/milestones{/number}","notifications_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/labels{/name}","releases_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/releases{/id}","deployments_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/deployments","created_at":"2018-01-15T09:43:43Z","updated_at":"2018-04-26T14:02:57Z","pushed_at":"2018-08-08T20:09:16Z","git_url":"git://github.com/OnTheGoSystems/wpml-page-builders.git","ssh_url":"git@github.com:OnTheGoSystems/wpml-page-builders.git","clone_url":"https://github.com/OnTheGoSystems/wpml-page-builders.git","svn_url":"https://github.com/OnTheGoSystems/wpml-page-builders","homepage":null,"size":132,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":7,"license":null,"forks":0,"open_issues":7,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/pulls/17"},"html":{"href":"https://github.com/OnTheGoSystems/wpml-page-builders/pull/17"},"issue":{"href":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/issues/17"},"comments":{"href":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders/statuses/80af2da69c044ffc7fdfe7dea611599a0fd8652b"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"adrianosferreira"}}