{"id":418,"date":"2019-12-23T17:04:34","date_gmt":"2019-12-23T17:04:34","guid":{"rendered":"https:\/\/oxibug.com\/kb\/docs\/envato-castle\/2-integrate-client-plugin-in-a-wordpress-project\/"},"modified":"2021-09-05T09:15:43","modified_gmt":"2021-09-05T09:15:43","slug":"integrate-keygator-client-in-the-wordpress-project","status":"publish","type":"docs","link":"https:\/\/oxibug.com\/kb\/docs\/keygator\/integrate-keygator-client-in-the-wordpress-project\/","title":{"rendered":"2. Integrate KeyGator Client in the WordPress Project"},"content":{"rendered":"\n<p>See How to integrate the DevenceGate (Client) plugin into your WordPress project using <a aria-label=\"TGM Plugin Activation (opens in a new tab)\" href=\"http:\/\/tgmpluginactivation.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">TGM Plugin Activation<\/a> to force your buyers to verify their licenses to receive the Sendback Content array and use the Premium features for buyers only.<\/p>\n\n\n\n<p class=\"has-luminous-vivid-amber-color has-very-dark-gray-background-color has-text-color has-background\">We extremely recommended to use our modified version of TGMPA  inside your plugins or themes you develop, The new TGMPA modified to work simultaneously to avoid conflict with other TGMPA included (In case a plugin and theme use TGMPA simultaneously).<br><br>For Plugins (If you use Namespaces in your project): <br><a href=\"https:\/\/github.com\/Oxibug\/tgmpa-ns\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"https:\/\/github.com\/Oxibug\/tgmpa-ns (opens in a new tab)\">https:\/\/github.com\/Oxibug\/tgmpa-ns<\/a><br><br>For Themes:<br><a href=\"https:\/\/github.com\/Oxibug\/tgmpa-unique-cls\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"https:\/\/github.com\/Oxibug\/tgmpa-unique-cls (opens in a new tab)\">https:\/\/github.com\/Oxibug\/tgmpa-unique-cls<\/a> <\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Envato Castle - Integrate the Client Plugin into the WordPress Project\" width=\"1110\" height=\"624\" src=\"https:\/\/www.youtube.com\/embed\/BIqNkqoiO4k?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Include TGM Plugin Activation into your WordPress project<\/li><li>Include your DevenceGate (Client) Plugin generated from the latest step using TGMPA.<\/li><li>Add the following lines into your project&#8217;s main file like <strong>functions.php<\/strong>.<\/li><\/ul>\n\n\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\nif( ! defined('CONST_{ITEM_SLUG}_{ITEM_ID}_ID') ) { define('CONST_{ITEM_SLUG}_{ITEM_ID}_ID', '{ITEM_ID}'); }\n\nif( ! defined('CONST_{ITEM_SLUG}_{ITEM_ID}_VERSION') ) { define('CONST_{ITEM_SLUG}_{ITEM_ID}_VERSION', 'CURRENT_SENDBACK_VERSION'); }\n<\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Define the item <strong>7156494<\/strong> with Slug <strong>MAG4U<\/strong><\/li><\/ul>\n\n\n\n\n\n<ul class=\"wp-block-list\"><li>Use DevenceGate (Client) Plugin functions to check whether your project&#8217;s licenses have been verified by a verified buyer or not, Using the following code.<br><br>The element inside the Sendback content called <strong>tgmpa_plugins<\/strong>, If you have added you own Sendback content, you should use your elements IDs.<\/li><\/ul>\n\n\n\n\n\n<ul class=\"wp-block-list\"><li>Helper Functions provided by DevenceGate Client Plugin and you can use &#8217;em in your project using your plugin&#8217;s namespace<br><strong> \\DevenceGate{AUTHOR_NAME}\\DevFactory::{FUNCTION_NAME}<\/strong><\/li><\/ul>\n\n\n\n\n\n<p><\/p>\n","protected":false},"featured_media":0,"parent":13,"menu_order":3,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-418","docs","type-docs","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>2. Integrate KeyGator Client in the WordPress Project - Knowledge Base<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/oxibug.com\/kb\/docs\/keygator\/integrate-keygator-client-in-the-wordpress-project\/\" class=\"yoast-seo-meta-tag\" \/>\n<meta property=\"og:locale\" content=\"en_US\" class=\"yoast-seo-meta-tag\" \/>\n<meta property=\"og:type\" content=\"article\" class=\"yoast-seo-meta-tag\" \/>\n<meta property=\"og:title\" content=\"2. Integrate KeyGator Client in the WordPress Project - Knowledge Base\" class=\"yoast-seo-meta-tag\" \/>\n<meta property=\"og:description\" content=\"See How to integrate the DevenceGate (Client) plugin into your WordPress project using TGM Plugin Activation to force your buyers to verify their licenses to receive the Sendback Content array and use the Premium features for buyers only. We extremely recommended to use our modified version of TGMPA inside your plugins or themes you develop, [&hellip;]\" class=\"yoast-seo-meta-tag\" \/>\n<meta property=\"og:url\" content=\"https:\/\/oxibug.com\/kb\/docs\/keygator\/integrate-keygator-client-in-the-wordpress-project\/\" class=\"yoast-seo-meta-tag\" \/>\n<meta property=\"og:site_name\" content=\"Knowledge Base\" class=\"yoast-seo-meta-tag\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-05T09:15:43+00:00\" class=\"yoast-seo-meta-tag\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" class=\"yoast-seo-meta-tag\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" class=\"yoast-seo-meta-tag\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" class=\"yoast-seo-meta-tag\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/oxibug.com\/kb\/docs\/keygator\/integrate-keygator-client-in-the-wordpress-project\/\",\"url\":\"https:\/\/oxibug.com\/kb\/docs\/keygator\/integrate-keygator-client-in-the-wordpress-project\/\",\"name\":\"2. Integrate KeyGator Client in the WordPress Project - Knowledge Base\",\"isPartOf\":{\"@id\":\"https:\/\/oxibug.com\/kb\/#website\"},\"datePublished\":\"2019-12-23T17:04:34+00:00\",\"dateModified\":\"2021-09-05T09:15:43+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/oxibug.com\/kb\/docs\/keygator\/integrate-keygator-client-in-the-wordpress-project\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/oxibug.com\/kb\/docs\/keygator\/integrate-keygator-client-in-the-wordpress-project\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/oxibug.com\/kb\/docs\/keygator\/integrate-keygator-client-in-the-wordpress-project\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/oxibug.com\/kb\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"KeyGator\",\"item\":\"https:\/\/oxibug.com\/kb\/docs\/keygator\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"2. Integrate KeyGator Client in the WordPress Project\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/oxibug.com\/kb\/#website\",\"url\":\"https:\/\/oxibug.com\/kb\/\",\"name\":\"Knowledge Base\",\"description\":\"Projects Documentation\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/oxibug.com\/kb\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"2. Integrate KeyGator Client in the WordPress Project - Knowledge Base","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/oxibug.com\/kb\/docs\/keygator\/integrate-keygator-client-in-the-wordpress-project\/","og_locale":"en_US","og_type":"article","og_title":"2. Integrate KeyGator Client in the WordPress Project - Knowledge Base","og_description":"See How to integrate the DevenceGate (Client) plugin into your WordPress project using TGM Plugin Activation to force your buyers to verify their licenses to receive the Sendback Content array and use the Premium features for buyers only. We extremely recommended to use our modified version of TGMPA inside your plugins or themes you develop, [&hellip;]","og_url":"https:\/\/oxibug.com\/kb\/docs\/keygator\/integrate-keygator-client-in-the-wordpress-project\/","og_site_name":"Knowledge Base","article_modified_time":"2021-09-05T09:15:43+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/oxibug.com\/kb\/docs\/keygator\/integrate-keygator-client-in-the-wordpress-project\/","url":"https:\/\/oxibug.com\/kb\/docs\/keygator\/integrate-keygator-client-in-the-wordpress-project\/","name":"2. Integrate KeyGator Client in the WordPress Project - Knowledge Base","isPartOf":{"@id":"https:\/\/oxibug.com\/kb\/#website"},"datePublished":"2019-12-23T17:04:34+00:00","dateModified":"2021-09-05T09:15:43+00:00","breadcrumb":{"@id":"https:\/\/oxibug.com\/kb\/docs\/keygator\/integrate-keygator-client-in-the-wordpress-project\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/oxibug.com\/kb\/docs\/keygator\/integrate-keygator-client-in-the-wordpress-project\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/oxibug.com\/kb\/docs\/keygator\/integrate-keygator-client-in-the-wordpress-project\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/oxibug.com\/kb\/"},{"@type":"ListItem","position":2,"name":"KeyGator","item":"https:\/\/oxibug.com\/kb\/docs\/keygator\/"},{"@type":"ListItem","position":3,"name":"2. Integrate KeyGator Client in the WordPress Project"}]},{"@type":"WebSite","@id":"https:\/\/oxibug.com\/kb\/#website","url":"https:\/\/oxibug.com\/kb\/","name":"Knowledge Base","description":"Projects Documentation","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/oxibug.com\/kb\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/oxibug.com\/kb\/wp-json\/wp\/v2\/docs\/418","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oxibug.com\/kb\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/oxibug.com\/kb\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/oxibug.com\/kb\/wp-json\/wp\/v2\/comments?post=418"}],"version-history":[{"count":48,"href":"https:\/\/oxibug.com\/kb\/wp-json\/wp\/v2\/docs\/418\/revisions"}],"predecessor-version":[{"id":633,"href":"https:\/\/oxibug.com\/kb\/wp-json\/wp\/v2\/docs\/418\/revisions\/633"}],"up":[{"embeddable":true,"href":"https:\/\/oxibug.com\/kb\/wp-json\/wp\/v2\/docs\/13"}],"next":[{"title":"3. Client's Website - Test KeyGator Client Plugin","link":"https:\/\/oxibug.com\/kb\/docs\/keygator\/clients-website-test-keygator-client-plugin\/","href":"https:\/\/oxibug.com\/kb\/wp-json\/wp\/v2\/docs\/420"}],"prev":[{"title":"1. Configure Your Website","link":"https:\/\/oxibug.com\/kb\/docs\/keygator\/configure-your-website\/","href":"https:\/\/oxibug.com\/kb\/wp-json\/wp\/v2\/docs\/17"}],"wp:attachment":[{"href":"https:\/\/oxibug.com\/kb\/wp-json\/wp\/v2\/media?parent=418"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/oxibug.com\/kb\/wp-json\/wp\/v2\/doc_tag?post=418"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}