The mentioned code should work. If you added that but it does not work for you we need WP Dashboard access to your site to check and find the reason why it does not work for you. We can’t tell you why it does not work if we don’t see your settings and your site.
One standard license is valid only for 1 project. Running multiple projects on a single license is a copyright violation.