{"id":54,"date":"2021-03-29T06:19:06","date_gmt":"2021-03-29T06:19:06","guid":{"rendered":"https:\/\/imagify.io\/documentation\/?p=54"},"modified":"2024-10-15T07:53:05","modified_gmt":"2024-10-15T07:53:05","slug":"hide-api-key","status":"publish","type":"post","link":"https:\/\/imagify.io\/documentation\/hide-api-key\/","title":{"rendered":"How to hide API key in Imagify Plugin"},"content":{"rendered":"\n<p>In Imagify WordPress Plugin there is no option to hide the API key, but to hide it here are two tips:<\/p>\n\n\n\n<p><b>1) In wp-config.php<\/b><\/p>\n\n\n\n<p>By adding this line, Imagify will not ask for the API key:<\/p>\n\n\n\n<p><code>define ('IMAGIFY_API_KEY', 'YOUR_API_KEY');<\/code><\/p>\n\n\n\n<p>If you want to remove your Imagify API Key from Imagify plugin settings page, and remove Imagify account information from the &#8220;Imagify&#8221; admin bar item and Bulk Optimizer page:<br><br><code>define ('IMAGIFY_HIDDEN_ACCOUNT', true);<\/code><\/p>\n\n\n\n<p><b>2) Create subaccounts<\/b><\/p>\n\n\n\n<p>Another option to hide the API key (of master account) is to create sub-accounts. Each sub-account that you create will have its own API key.<br>This way, each website can have its own API key.<\/p>\n\n\n\n<p>Additionally, quota can be allotted for each sub-account. For a guide on sub-accounts, view our documentation&nbsp;\u201c<a href=\"https:\/\/imagify.io\/documentation\/create-sub-accounts\/\">How to Create Sub-accounts<\/a>\u201d.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Imagify WordPress Plugin there is no option to hide the API key, but to hide it here are two tips: 1) In wp-config.php By adding this line, Imagify will not ask for the API key: define (&#8216;IMAGIFY_API_KEY&#8217;, &#8216;YOUR_API_KEY&#8217;); If you want to remove your Imagify API Key from Imagify plugin settings page, and remove [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[9,11],"class_list":["post-54","post","type-post","status-publish","format-standard","hentry","category-api","tag-api-key","tag-wp-plugin"],"_links":{"self":[{"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/posts\/54","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/comments?post=54"}],"version-history":[{"count":12,"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/posts\/54\/revisions"}],"predecessor-version":[{"id":1131,"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/posts\/54\/revisions\/1131"}],"wp:attachment":[{"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/media?parent=54"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/categories?post=54"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/tags?post=54"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}