{"id":33843,"date":"2019-03-01T11:45:31","date_gmt":"2019-03-01T11:45:31","guid":{"rendered":"http:\/\/getshortcodes.com\/?post_type=docs&#038;p=33843"},"modified":"2021-02-11T10:41:11","modified_gmt":"2021-02-11T10:41:11","slug":"how-to-activate-a-license-key","status":"publish","type":"docs","link":"https:\/\/getshortcodes.com\/docs\/how-to-activate-a-license-key\/","title":{"rendered":"How to activate a license key"},"content":{"rendered":"\n<div class=\"wp-block-group has-black-color has-yellow-background-color has-text-color has-background\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<p>This article is outdated, please see an appropriate User Guide:<\/p>\n\n\n\n<ul class=\"is-style-links wp-block-list\"><li><a href=\"\/docs\/extra-shortcodes-user-guide\/\">Extra Shortcodes<\/a><\/li><li><a href=\"\/docs\/additional-skins-user-guide\/\">Additional Skins<\/a><\/li><li><a href=\"\/docs\/shortcode-creator-user-guide\/\">Shortcode Creator<\/a><\/li><\/ul>\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image alignwide size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"913\" height=\"769\" src=\"https:\/\/getshortcodes.com\/wp-content\/uploads\/2019\/03\/license-key-activated.png\" alt=\"Screenshot: Successful activation of a license key\" class=\"wp-image-34456\" srcset=\"https:\/\/getshortcodes.com\/wp-content\/uploads\/2019\/03\/license-key-activated.png 913w, https:\/\/getshortcodes.com\/wp-content\/uploads\/2019\/03\/license-key-activated-512x431.png 512w, https:\/\/getshortcodes.com\/wp-content\/uploads\/2019\/03\/license-key-activated-128x108.png 128w, https:\/\/getshortcodes.com\/wp-content\/uploads\/2019\/03\/license-key-activated-768x647.png 768w, https:\/\/getshortcodes.com\/wp-content\/uploads\/2019\/03\/license-key-activated-80x67.png 80w, https:\/\/getshortcodes.com\/wp-content\/uploads\/2019\/03\/license-key-activated-24x20.png 24w\" sizes=\"auto, (max-width: 913px) 100vw, 913px\" \/><\/figure>\n\n\n\n<p class=\"has-black-color has-yellow-background-color has-text-color has-background\">Activation of a license key is required to enable automatic updates<\/p>\n\n\n<p class=\"h2\">Table of contents<\/p>\n\n<ol><li><a href=\"#activation-process\">Activation process<\/a><\/li><li><a href=\"#activation-errors\">Activation errors<\/a><ol><li><a href=\"#invalid-license-key\">Invalid license key<\/a><\/li><li><a href=\"#license-key-reached-its-activation-limit-deactivate-this-license-key-on-other-sites\">License key reached its activation limit. Deactivate this license key on other sites<\/a><\/li><li><a href=\"#this-license-key-is-intended-to-use-with-another-add-on\">This license key is intended to use with another add-on<\/a><\/li><li><a href=\"#unable-to-connect-to-the-activation-server\">Unable to connect to the activation server<\/a><\/li><li><a href=\"#unknown-error\">Unknown error<\/a><\/li><\/ol><\/li><li><a href=\"#multisite-installations\">Multisite installations<\/a><\/li><li><a href=\"#localhost-staging\">Localhost \/ Staging<\/a><\/li><li><a href=\"#manual-activation\">Manual activation<\/a><\/li><li><a href=\"#get-help\">Get help<\/a><\/li><\/ol><\/li><\/ol>\n\n\n<h2 class=\"wp-block-heading\" id=\"activation-process\">Activation process<\/h2>\n\n\n\n<p>An email with a license key will be sent to you right after the purchase of a premium add-on. If you&#8217;ve lost that email, please visit the&nbsp;<a href=\"\/support\/restore-purchase\/\">Restore Purchase<\/a>&nbsp;page and follow instructions to recover your information.<\/p>\n\n\n\n<p>License key activation is required for automatic updates. Follow the steps below to activate your key.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Log in to the dashboard of your site (wp-admin);<\/li><li>Navigate to&nbsp;<em>Dashboard \u2192&nbsp;Shortcodes \u2192&nbsp;Settings<\/em>&nbsp;and scroll page down;<\/li><li>Paste the received license key into the&nbsp;<em>License Key<\/em>&nbsp;field;<\/li><li>Press the&nbsp;<em>Save Changes<\/em>&nbsp;button to activate the license key.<\/li><\/ol>\n\n\n\n<p>You can clear the&nbsp;<em>License key<\/em>&nbsp;field and click&nbsp;<em>Save Changes<\/em>&nbsp;to deactivate license key later.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"activation-errors\">Activation errors<\/h2>\n\n\n\n<p>The following errors may occur upon activation of a license key.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"invalid-license-key\">Invalid license key<\/h3>\n\n\n\n<p>This error may occur if you&#8217;re trying to activate <g class=\"gr_ gr_5 gr-alert gr_gramm gr_inline_cards gr_disable_anim_appear Grammar only-ins replaceWithoutSep\" id=\"5\" data-gr-id=\"5\">invalid<\/g> license key. Please make sure that you aren&#8217;t missed some part of <g class=\"gr_ gr_6 gr-alert gr_gramm gr_inline_cards gr_disable_anim_appear Grammar only-ins replaceWithoutSep\" id=\"6\" data-gr-id=\"6\">license<\/g> key when copied&nbsp;it from email. License key should have the following format:&nbsp;<code>XXXX-XXXX-XXXX-XXXX<\/code>&nbsp;(four groups of four digits\/letters, separated by hyphens).<\/p>\n\n\n\n<p>This error may also occur in local development environments. If you&#8217;re trying to activate a license key on local site, for example,&nbsp;<em>WordPress.wp<\/em>&nbsp;or&nbsp;<em>mywp.develop<\/em>, you&#8217;ll get this error.<\/p>\n\n\n\n<p>However, you can activate license key on the following local domains:&nbsp;<em>*.dev<\/em>,&nbsp;<em>*.local<\/em>,&nbsp;<em>localhost<\/em>. If you&#8217;re using other domain name for local site, you can still activate license key manually. Follow <a href=\"#manual-activation\">this guide<\/a> to do that.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"license-key-reached-its-activation-limit-deactivate-this-license-key-on-other-sites\">License key reached its activation limit. Deactivate this license key on other sites<\/h3>\n\n\n\n<p>If you&#8217;ve purchased a license key with a limit on the number of websites (Single Site or 2-5 Sites options), you could only activate it on the specified number of websites. This error indicates that your license key has reached its activation limit. You should deactivate this license key on other websites to be able to use it again. Just clear License key field on any previous site to deactivate license key on that site. If you do not remember at which site(s) you have activated license key, please contact support.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"this-license-key-is-intended-to-use-with-another-add-on\">This license key is intended to use with another add-on<\/h3>\n\n\n\n<p>Each license key is intended for use with a specific add-on. It means you can not activate Extra Shortcodes add-on (example) using license key of Shortcode Creator add-on (example). If you are feeling confused about purchased license keys, please contact support.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"unable-to-connect-to-the-activation-server\">Unable to connect to the activation server<\/h3>\n\n\n\n<p>If you&#8217;ve faced this error, it&#8217;s most probably that your site unable to connect to the activation server. In this case, you&#8217;ll need to activate your license key manually.&nbsp;<a href=\"\/docs\/unable-to-connect-to-activation-server-please-try-again-later\/\">This article<\/a>&nbsp;will guide you through manual license key activation.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"unknown-error\">Unknown error<\/h3>\n\n\n\n<p>This error should never happen. If you&#8217;ve faced it, please contact support immediately.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"multisite-installations\">Multisite installations<\/h2>\n\n\n\n<p>On multisite installations, license key could be added only on the main site. A plugin should be updated only on the main site too.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"localhost-staging\">Localhost \/ Staging<\/h2>\n\n\n\n<p>You can activate a license key on the following local domains:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>localhost<\/li><li>*.local<\/li><li>*.dev.cc<\/li><\/ul>\n\n\n\n<p>Activations made on a local domain won&#8217;t be counted. If you&#8217;re using another domain name for a local site or for a staging site, you can still activate the license key manually. Follow&nbsp;<a href=\"#manual-activation\">this guide<\/a>&nbsp;to do that.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"manual-activation\">Manual activation<\/h2>\n\n\n\n<p><strong>Step 1<\/strong><\/p>\n\n\n\n<p>Open up&nbsp;&nbsp;<em>functions.php<\/em>&nbsp;file of your active theme and paste the following code:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ Use this code to activate Extra Shortcodes add-on\nupdate_option( 'su_option_extra-shortcodes_license', 'ENTER-YOUR-LICENSE-KEY-HERE' );\n\n\/\/ Use this code to activate Additional Skins add-on\nupdate_option( 'su_option_additional-skins_license', 'ENTER-YOUR-LICENSE-KEY-HERE' );\n\n\/\/ Use this code to activate Shortcode Creator (Maker) add-on\nupdate_option( 'su_option_shortcode-creator_license', 'ENTER-YOUR-LICENSE-KEY-HERE' );<\/code><\/pre>\n\n\n\n<p><strong>Step 2<\/strong><\/p>\n\n\n\n<p>Replace&nbsp;<em>ENTER-YOUR-LICENSE-KEY-HERE<\/em>&nbsp;with your license key.<\/p>\n\n\n\n<p><strong>Step 3<\/strong><\/p>\n\n\n\n<p>Open any page of your site (no matter front page or any admin page). This will run the code in&nbsp;<em>functions.php<\/em>&nbsp;file.<\/p>\n\n\n\n<p><strong>Step 4<\/strong><\/p>\n\n\n\n<p>Now your license key successfully added to the database and you can remove the code from the&nbsp;<em>functions.php<\/em>&nbsp;file.<\/p>\n\n\n\n<p><strong>Step 5<\/strong><\/p>\n\n\n\n<p>Check your license key status by navigating to&nbsp;<em>Dashboard \u2192 Shortcodes \u2192 Settings<\/em>&nbsp;page.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"get-help\">Get help<\/h2>\n\n\n\n<p>Feel free to&nbsp;open <a href=\"\/support\/open-support-ticket\/\">new support ticket<\/a>, If something went wrong.<\/p>\n","protected":false},"featured_media":0,"template":"","docs_category":[25],"class_list":["post-33843","docs","type-docs","status-publish","hentry","docs_category-addons"],"_links":{"self":[{"href":"https:\/\/getshortcodes.com\/api\/wp\/v2\/docs\/33843","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/getshortcodes.com\/api\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/getshortcodes.com\/api\/wp\/v2\/types\/docs"}],"wp:attachment":[{"href":"https:\/\/getshortcodes.com\/api\/wp\/v2\/media?parent=33843"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/getshortcodes.com\/api\/wp\/v2\/docs_category?post=33843"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}