tId ); }; wpml_collect( $this->elementFactory->create_post( $postId )->get_translations() ) ->reject( $ifOriginal ) ->filter( $ifCompleted ) ->each( $resaveElement ) ->each( $callAction ); } /** * @param int $postId * * @return bool */ private function isPageBuilder( $postId ) { $isPbPostWithoutStrings = function( $postId ) { $post = get_post( $postId ); return $post instanceof \WP_Post && $this->pageBuilt->is_page_builder_page( $post ); }; return self::getPackages( $postId ) || $isPbPostWithoutStrings( $postId ); } }