'on', '_et_pb_use_builder' => 'on', '_et_pb_show_page_creation' => 'off', ]; /** @throws RuntimeException When a flag does not read back as set. */ public static function set(int $postId): void { foreach (self::FLAGS as $key => $value) { update_post_meta($postId, $key, $value); } foreach (self::FLAGS as $key => $value) { if (get_post_meta($postId, $key, true) !== $value) { throw new RuntimeException(sprintf('Divi flag %s of post %d is not "%s".', $key, $postId, $value)); } } } }