{"id":62539,"date":"2024-02-13T09:50:41","date_gmt":"2024-02-13T14:50:41","guid":{"rendered":"https:\/\/memberpress.com\/docs\/how-to-add-custom-code-snippets-in-wpcode\/"},"modified":"2024-02-13T17:17:41","modified_gmt":"2024-02-13T22:17:41","slug":"how-to-add-custom-code-snippets-in-wpcode","status":"publish","type":"ht_kb","link":"https:\/\/memberpress.com\/de\/docs\/how-to-add-custom-code-snippets-in-wpcode\/","title":{"rendered":"Hinzuf\u00fcgen von benutzerdefinierten Codefragmenten in WPCode"},"content":{"rendered":"<p>Wenn Sie benutzerdefinierten Code zu Ihrer Website hinzuf\u00fcgen m\u00f6chten, k\u00f6nnen Sie eine unserer <a href=\"https:\/\/memberpress.com\/de\/docs\/action-hooks-in-memberpress\/\" target=\"_blank\" rel=\"noopener\">Aktion<\/a> oder <a href=\"https:\/\/memberpress.com\/de\/docs\/filter-hooks-in-memberpress\/\" target=\"_blank\" rel=\"noopener\">Filter<\/a> Hooks, f\u00fcgen Sie den Code am Ende der Datei functions.php Ihres Themes ein, oder verwenden Sie eine der <b>Code-Schnipsel-Plugins<\/b>.<\/p><p>Die Verwendung eines benutzerdefinierten Code-Plugins kann aus mehreren Gr\u00fcnden eine bessere Option sein:<\/p><ul><li>Sie erhalten mehr Kontrolle \u00fcber Ihre Snippets<\/li><li>Sie k\u00f6nnen sie bei Bedarf aktivieren<\/li><li>Sie k\u00f6nnen m\u00f6gliche Fehler vermeiden<\/li><li>Sie k\u00f6nnen sie im Backend, Frontend oder nur auf bestimmten Seiten verwenden<\/li><li>F\u00fcr viele, wie z. B. WPCode, m\u00fcssen Sie keine Programmierkenntnisse haben.<\/li><\/ul><p>In diesem Dokument zeigen wir Ihnen, wie Sie <a href=\"https:\/\/wordpress.org\/plugins\/insert-headers-and-footers\/\" target=\"_blank\" rel=\"noopener\">WPCode - Kopf- und Fu\u00dfzeilen einf\u00fcgen + Benutzerdefinierte Codeschnipsel<\/a> mit MemberPress.<\/p><h2>Video-Anleitung<\/h2><iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/mDYQU3TK_aQ?enablejsapi=1\" title=\"YouTube-Video-Player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen=\"\"><\/iframe><p>Nach der Installation und Aktivierung des WPCode-Plugins im Bereich Plugins wird im WordPress-Dashboard ein Abschnitt mit Code-Snippets angezeigt.<\/p><p><img decoding=\"async\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2024\/02\/file-deUhYLoPgS.png\" style=\"width: 869.989px; max-width: 100%; \"><\/p><p>Um Code-Snippets hinzuzuf\u00fcgen, klicken Sie zun\u00e4chst auf die Schaltfl\u00e4che Neu hinzuf\u00fcgen oben im Abschnitt Code-Snippets.<\/p><p>Daraufhin wird ein neues Fenster \"Snippet hinzuf\u00fcgen\" angezeigt.<\/p><p>Fahren Sie dann mit dem Mauszeiger \u00fcber den Abschnitt \"F\u00fcgen Sie Ihren eigenen Code hinzu (neues Snippet)\" und klicken Sie auf die Schaltfl\u00e4che Snippet verwenden.<\/p><p>\n\t<img decoding=\"async\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2024\/02\/file-64wv1b67E0.png\" style=\"background-color: initial; width: 871.989px;\"><\/p><p>In dem neuen Fenster m\u00fcssen Sie Folgendes tun:<\/p><ol><li>Einen Titel hinzuf\u00fcgen<\/li><li>\u00c4ndern Sie den Codetyp in PHP Snippet (damit Ihre Codesyntax auf Fehler gepr\u00fcft wird)<\/li><li>F\u00fcgen Sie Ihr Code-Snippet in das Feld \"Code-Vorschau\" ein<\/li><li>Vergewissern Sie sich, dass die Option \"Automatisch einf\u00fcgen\" aktiviert ist.<\/li><li>Aktivieren Sie das Kontrollk\u00e4stchen \"Inaktiv\", um es in \"Aktiv\" umzuwandeln.<\/li><li>\u00c4ndern Sie den Standort auf \"Nur Frontend\".<\/li><li>Klicken Sie auf die Schaltfl\u00e4che \"Snippet speichern\", um das Code-Snippet zu speichern.<\/li><\/ol><p><img decoding=\"async\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2024\/02\/file-IAApesLljb.png\" style=\"width: 862.989px; max-width: 100%; \"><\/p><p>Das war's! Ihr Codeschnipsel sollte funktionieren.<\/p><p>Das Aktivieren und Deaktivieren von Codefragmenten ist einfach. Sie m\u00fcssen nur die K\u00e4stchen unter der Spalte \"Status\" in der Tabelle \"Codeausschnitte\" aktivieren bzw. deaktivieren.<\/p><p><img decoding=\"async\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2024\/02\/file-Q1YA8kcWtk.png\" style=\"width: 100%; max-width: 100%; \"><\/p><h3>Der Ort, an dem Ihr Codeschnipsel ausgef\u00fchrt wird<\/h3><p>Im obigen Beispiel haben wir die <a href=\"https:\/\/memberpress.com\/de\/docs\/filter-hooks-in-memberpress\/#mepr-account-nav-home-label\" target=\"_blank\" rel=\"noopener\">mepr-account-nav-home-label<\/a> Filterhaken zum \u00c4ndern des Home-Labels auf der Kontoseite im Frontend.<\/p><p>Deshalb haben wir als Standort \"Nur Frontend\" gew\u00e4hlt. Das bedeutet, dass das Codeschnipsel nur auf dem Frontend ausgef\u00fchrt wird (d. h. auf allen Seiten, auf die normale Benutzer Zugriff haben, einschlie\u00dflich der Kontoseite).<\/p><p>Wir k\u00f6nnten auch die Option \"\u00dcberall ausf\u00fchren\" verwenden. Auf diese Weise w\u00fcrde der Code auf der gesamten Website ausgef\u00fchrt werden, auch auf dem WordPress-Dashboard (dem Backend).<\/p><p>Wenn Sie einen der Filterhaken verwenden m\u00f6chten, die nur im Backend laufen (z. B., <a href=\"https:\/\/memberpress.com\/de\/docs\/filter-hooks-in-memberpress\/#mepr-admin-subscriptions-cols\" target=\"_blank\" rel=\"noopener\">mepr-admin-subscriptions-cols<\/a>), k\u00f6nnen Sie die Option \"Nur f\u00fcr Administratoren\" unter Standort verwenden.<\/p><p><img decoding=\"async\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2024\/02\/file-9T9dswdqr2.png\" style=\"width: 100%; max-width: 100%; \"><\/p><h3>Bedingte Logik<\/h3><p>Bitte beachten Sie, dass WPCode \u00fcber weitere Optionen verf\u00fcgt, mit denen Sie Code-Snippets ausf\u00fchren k\u00f6nnen. Zum Beispiel k\u00f6nnen Sie sie nur f\u00fcr angemeldete Benutzer, bestimmte Seiten oder f\u00fcr Benutzer mit einer bestimmten Rolle ausf\u00fchren. <\/p><p>Aktivieren Sie dazu das Kontrollk\u00e4stchen \"Logik aktivieren\" im Abschnitt \"Intelligente bedingte Logik\".<\/p><p><img decoding=\"async\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2024\/02\/file-Z7txLYDsDE.png\" style=\"width: 877.989px; max-width: 100%; \"><\/p><h2>WPCode Snippets Pro Integration mit MemberPress<\/h2><p>Wenn Sie WPCode Snippets Pro verwenden, k\u00f6nnen Sie zus\u00e4tzlich steuern, wo und in welchen F\u00e4llen Ihre Code-Snippets basierend auf dem MemberPress-Standort und den Bedingungen ausgef\u00fchrt werden. Au\u00dferdem k\u00f6nnen Sie Ihre Conversion Pixels hinzuf\u00fcgen, um Ihre MemberPress-K\u00e4ufe zu verfolgen.<\/p><p>Bitte pr\u00fcfen Sie die folgenden Dokumente:<\/p><ul><li><a href=\"https:\/\/memberpress.com\/de\/docs\/wpcode-locations-for-memberpress\/\" target=\"_blank\" rel=\"noopener\">WPCode Auto-Insert Stellen f\u00fcr MemberPress<\/a><\/li><li><a href=\"https:\/\/memberpress.com\/de\/docs\/wpcode-conditional-logic-for-memberpress\/\" target=\"_blank\" rel=\"noopener\">WPCode Bedingte Logikregeln f\u00fcr MemberPress<\/a><\/li><li><a href=\"https:\/\/memberpress.com\/de\/docs\/wpcode-conversion-pixels-with-memberpress\/\" target=\"_blank\" rel=\"noopener\">WPCode-Umwandlungspixel mit MemberPress verwenden<\/a><\/li><\/ul>\n        <div class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\"><h2>Hilfe?<\/h2><p>Funktioniert das Programm nicht so, wie es Ihrer Meinung nach sollte, auch wenn Sie die Anweisungen befolgt haben? Schicken Sie uns einfach eine <a href=\"https:\/\/memberpress.com\/de\/support\/\"><b>Support-Ticket<\/b><\/a>!<\/p><\/div>","protected":false},"excerpt":{"rendered":"<p>If you want to add custom code to your site, you can use one of our action or filter hooks, add the code at the end of your theme\u2019s functions.php file, or use one of the code snippets plugins. Using a custom code plugin can be a better option for a few reasons: You get [\u2026]<\/p>\n","protected":false},"author":62252,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_acf_changed":false,"om_disable_all_campaigns":false,"_strive_editorial_status":"not-started","_strive_copy_of":0,"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","_FSMCFIC_featured_image_caption":"","_FSMCFIC_featured_image_nocaption":"","_FSMCFIC_featured_image_hide":"","_strive_checklists":"\"\"","_strive_active_checklist":"62291e2bb2422","footnotes":""},"ht-kb-category":[1354],"ht-kb-tag":[],"class_list":{"0":"post-62539","1":"ht_kb","2":"type-ht_kb","3":"status-publish","4":"format-standard","6":"ht_kb_category-using-custom-codes","7":"entry","8":"has-post-thumbnail"},"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO Pro 4.9.5.2 - aioseo.com -->\n\t<meta name=\"description\" content=\"If you want to add custom code to your site, you can use one of our action or filter hooks, add the code at the end of your theme\u2019s functions.php file, or use one of the code snippets plugins. Using a custom code plugin can be a better option for a few reasons: You get\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Nikola M\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/memberpress.com\/de\/docs\/how-to-add-custom-code-snippets-in-wpcode\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO Pro (AIOSEO) 4.9.5.2\" \/>\n\t\t<meta property=\"og:locale\" content=\"de_DE\" \/>\n\t\t<meta property=\"og:site_name\" content=\"MemberPress\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"How to add custom code snippets in WPCode | MemberPress\" \/>\n\t\t<meta property=\"og:description\" content=\"If you want to add custom code to your site, you can use one of our action or filter hooks, add the code at the end of your theme\u2019s functions.php file, or use one of the code snippets plugins. Using a custom code plugin can be a better option for a few reasons: You get\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/memberpress.com\/de\/docs\/how-to-add-custom-code-snippets-in-wpcode\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1650\" \/>\n\t\t<meta property=\"og:image:height\" content=\"1275\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2024-02-13T14:50:41+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-02-13T22:17:41+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/memberpress\/\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@memberpress\" \/>\n\t\t<meta name=\"twitter:title\" content=\"How to add custom code snippets in WPCode | MemberPress\" \/>\n\t\t<meta name=\"twitter:description\" content=\"If you want to add custom code to your site, you can use one of our action or filter hooks, add the code at the end of your theme\u2019s functions.php file, or use one of the code snippets plugins. Using a custom code plugin can be a better option for a few reasons: You get\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/docs\\\/how-to-add-custom-code-snippets-in-wpcode\\\/#article\",\"name\":\"How to add custom code snippets in WPCode | MemberPress\",\"headline\":\"How to add custom code snippets in WPCode\",\"author\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/uploads\\\/2024\\\/02\\\/file-deUhYLoPgS.png\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/docs\\\/how-to-add-custom-code-snippets-in-wpcode\\\/#articleImage\",\"width\":1265,\"height\":1266},\"datePublished\":\"2024-02-13T09:50:41-05:00\",\"dateModified\":\"2024-02-13T17:17:41-05:00\",\"inLanguage\":\"de-DE\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/docs\\\/how-to-add-custom-code-snippets-in-wpcode\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/docs\\\/how-to-add-custom-code-snippets-in-wpcode\\\/#webpage\"},\"articleSection\":\"Using Custom Codes\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/docs\\\/how-to-add-custom-code-snippets-in-wpcode\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/memberpress.com\\\/de\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/doc-categories\\\/advanced-topics\\\/#listItem\",\"name\":\"Advanced Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/doc-categories\\\/advanced-topics\\\/#listItem\",\"position\":2,\"name\":\"Advanced Topics\",\"item\":\"https:\\\/\\\/memberpress.com\\\/de\\\/doc-categories\\\/advanced-topics\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/doc-categories\\\/using-custom-codes\\\/#listItem\",\"name\":\"Using Custom Codes\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/doc-categories\\\/using-custom-codes\\\/#listItem\",\"position\":3,\"name\":\"Using Custom Codes\",\"item\":\"https:\\\/\\\/memberpress.com\\\/de\\\/doc-categories\\\/using-custom-codes\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/docs\\\/how-to-add-custom-code-snippets-in-wpcode\\\/#listItem\",\"name\":\"How to add custom code snippets in WPCode\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/doc-categories\\\/advanced-topics\\\/#listItem\",\"name\":\"Advanced Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/docs\\\/how-to-add-custom-code-snippets-in-wpcode\\\/#listItem\",\"position\":4,\"name\":\"How to add custom code snippets in WPCode\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/doc-categories\\\/using-custom-codes\\\/#listItem\",\"name\":\"Using Custom Codes\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/#organization\",\"name\":\"MemberPress\",\"description\":\"The All-In-One WordPress Membership Plugin\",\"url\":\"https:\\\/\\\/memberpress.com\\\/de\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/mp-icon-RGB_Icon-01.jpg\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/docs\\\/how-to-add-custom-code-snippets-in-wpcode\\\/#organizationLogo\",\"width\":1650,\"height\":1275,\"caption\":\"memberpress logo icon\"},\"image\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/docs\\\/how-to-add-custom-code-snippets-in-wpcode\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/www.instagram.com\\\/memberpress\\\/\",\"https:\\\/\\\/www.pinterest.com\\\/memberpressplugin\\\/\",\"https:\\\/\\\/www.youtube.com\\\/c\\\/MemberPressPlugin\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/memberpress\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\",\"url\":\"https:\\\/\\\/memberpress.com\\\/de\\\/blog\\\/author\\\/nikolacaseproof-com\\\/\",\"name\":\"Nikola M\",\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/litespeed\\\/avatar\\\/1edf820c48f9c430f380efe81887b154.jpg?ver=1775745920\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/docs\\\/how-to-add-custom-code-snippets-in-wpcode\\\/#webpage\",\"url\":\"https:\\\/\\\/memberpress.com\\\/de\\\/docs\\\/how-to-add-custom-code-snippets-in-wpcode\\\/\",\"name\":\"How to add custom code snippets in WPCode | MemberPress\",\"description\":\"If you want to add custom code to your site, you can use one of our action or filter hooks, add the code at the end of your theme\\u2019s functions.php file, or use one of the code snippets plugins. Using a custom code plugin can be a better option for a few reasons: You get\",\"inLanguage\":\"de-DE\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/docs\\\/how-to-add-custom-code-snippets-in-wpcode\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\"},\"datePublished\":\"2024-02-13T09:50:41-05:00\",\"dateModified\":\"2024-02-13T17:17:41-05:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/#website\",\"url\":\"https:\\\/\\\/memberpress.com\\\/de\\\/\",\"name\":\"MemberPress\",\"description\":\"The All-In-One WordPress Membership Plugin\",\"inLanguage\":\"de-DE\",\"publisher\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO Pro -->\r\n\t\t<title>How to add custom code snippets in WPCode | MemberPress<\/title>\n\n","aioseo_head_json":{"title":"Hinzuf\u00fcgen von benutzerdefinierten Codefragmenten in WPCode | MemberPress","description":"Wenn Sie Ihrer Website benutzerdefinierten Code hinzuf\u00fcgen m\u00f6chten, k\u00f6nnen Sie einen unserer Action- oder Filter-Hooks verwenden, den Code am Ende der functions.php-Datei Ihres Themes hinzuf\u00fcgen oder eines der Code-Snippets-Plugins verwenden. Die Verwendung eines Plugins f\u00fcr benutzerdefinierten Code kann aus mehreren Gr\u00fcnden die bessere Option sein: Sie erhalten","canonical_url":"https:\/\/memberpress.com\/de\/docs\/how-to-add-custom-code-snippets-in-wpcode\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/memberpress.com\/de\/docs\/how-to-add-custom-code-snippets-in-wpcode\/#article","name":"How to add custom code snippets in WPCode | MemberPress","headline":"How to add custom code snippets in WPCode","author":{"@id":"https:\/\/memberpress.com\/de\/blog\/author\/nikolacaseproof-com\/#author"},"publisher":{"@id":"https:\/\/memberpress.com\/de\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/uploads\/2024\/02\/file-deUhYLoPgS.png","@id":"https:\/\/memberpress.com\/de\/docs\/how-to-add-custom-code-snippets-in-wpcode\/#articleImage","width":1265,"height":1266},"datePublished":"2024-02-13T09:50:41-05:00","dateModified":"2024-02-13T17:17:41-05:00","inLanguage":"de-DE","mainEntityOfPage":{"@id":"https:\/\/memberpress.com\/de\/docs\/how-to-add-custom-code-snippets-in-wpcode\/#webpage"},"isPartOf":{"@id":"https:\/\/memberpress.com\/de\/docs\/how-to-add-custom-code-snippets-in-wpcode\/#webpage"},"articleSection":"Using Custom Codes"},{"@type":"BreadcrumbList","@id":"https:\/\/memberpress.com\/de\/docs\/how-to-add-custom-code-snippets-in-wpcode\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/memberpress.com\/de#listItem","position":1,"name":"Home","item":"https:\/\/memberpress.com\/de","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/de\/doc-categories\/advanced-topics\/#listItem","name":"Advanced Topics"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/de\/doc-categories\/advanced-topics\/#listItem","position":2,"name":"Advanced Topics","item":"https:\/\/memberpress.com\/de\/doc-categories\/advanced-topics\/","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/de\/doc-categories\/using-custom-codes\/#listItem","name":"Using Custom Codes"},"previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/de#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/de\/doc-categories\/using-custom-codes\/#listItem","position":3,"name":"Using Custom Codes","item":"https:\/\/memberpress.com\/de\/doc-categories\/using-custom-codes\/","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/de\/docs\/how-to-add-custom-code-snippets-in-wpcode\/#listItem","name":"How to add custom code snippets in WPCode"},"previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/de\/doc-categories\/advanced-topics\/#listItem","name":"Advanced Topics"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/de\/docs\/how-to-add-custom-code-snippets-in-wpcode\/#listItem","position":4,"name":"How to add custom code snippets in WPCode","previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/de\/doc-categories\/using-custom-codes\/#listItem","name":"Using Custom Codes"}}]},{"@type":"Organization","@id":"https:\/\/memberpress.com\/de\/#organization","name":"MemberPress","description":"The All-In-One WordPress Membership Plugin","url":"https:\/\/memberpress.com\/de\/","logo":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg","@id":"https:\/\/memberpress.com\/de\/docs\/how-to-add-custom-code-snippets-in-wpcode\/#organizationLogo","width":1650,"height":1275,"caption":"memberpress logo icon"},"image":{"@id":"https:\/\/memberpress.com\/de\/docs\/how-to-add-custom-code-snippets-in-wpcode\/#organizationLogo"},"sameAs":["https:\/\/www.instagram.com\/memberpress\/","https:\/\/www.pinterest.com\/memberpressplugin\/","https:\/\/www.youtube.com\/c\/MemberPressPlugin","https:\/\/www.linkedin.com\/company\/memberpress\/"]},{"@type":"Person","@id":"https:\/\/memberpress.com\/de\/blog\/author\/nikolacaseproof-com\/#author","url":"https:\/\/memberpress.com\/de\/blog\/author\/nikolacaseproof-com\/","name":"Nikola M","image":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/litespeed\/avatar\/1edf820c48f9c430f380efe81887b154.jpg?ver=1775745920"}},{"@type":"WebPage","@id":"https:\/\/memberpress.com\/de\/docs\/how-to-add-custom-code-snippets-in-wpcode\/#webpage","url":"https:\/\/memberpress.com\/de\/docs\/how-to-add-custom-code-snippets-in-wpcode\/","name":"How to add custom code snippets in WPCode | MemberPress","description":"If you want to add custom code to your site, you can use one of our action or filter hooks, add the code at the end of your theme\u2019s functions.php file, or use one of the code snippets plugins. Using a custom code plugin can be a better option for a few reasons: You get","inLanguage":"de-DE","isPartOf":{"@id":"https:\/\/memberpress.com\/de\/#website"},"breadcrumb":{"@id":"https:\/\/memberpress.com\/de\/docs\/how-to-add-custom-code-snippets-in-wpcode\/#breadcrumblist"},"author":{"@id":"https:\/\/memberpress.com\/de\/blog\/author\/nikolacaseproof-com\/#author"},"creator":{"@id":"https:\/\/memberpress.com\/de\/blog\/author\/nikolacaseproof-com\/#author"},"datePublished":"2024-02-13T09:50:41-05:00","dateModified":"2024-02-13T17:17:41-05:00"},{"@type":"WebSite","@id":"https:\/\/memberpress.com\/de\/#website","url":"https:\/\/memberpress.com\/de\/","name":"MemberPress","description":"The All-In-One WordPress Membership Plugin","inLanguage":"de-DE","publisher":{"@id":"https:\/\/memberpress.com\/de\/#organization"}}]},"og:locale":"de_DE","og:site_name":"MemberPress","og:type":"article","og:title":"How to add custom code snippets in WPCode | MemberPress","og:description":"If you want to add custom code to your site, you can use one of our action or filter hooks, add the code at the end of your theme\u2019s functions.php file, or use one of the code snippets plugins. Using a custom code plugin can be a better option for a few reasons: You get","og:url":"https:\/\/memberpress.com\/de\/docs\/how-to-add-custom-code-snippets-in-wpcode\/","og:image":"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg","og:image:secure_url":"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg","og:image:width":1650,"og:image:height":1275,"article:published_time":"2024-02-13T14:50:41+00:00","article:modified_time":"2024-02-13T22:17:41+00:00","article:publisher":"https:\/\/www.facebook.com\/memberpress\/","twitter:card":"summary_large_image","twitter:site":"@memberpress","twitter:title":"How to add custom code snippets in WPCode | MemberPress","twitter:description":"If you want to add custom code to your site, you can use one of our action or filter hooks, add the code at the end of your theme\u2019s functions.php file, or use one of the code snippets plugins. Using a custom code plugin can be a better option for a few reasons: You get","twitter:image":"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg"},"aioseo_meta_data":{"post_id":"62539","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":"2025-10-09 22:05:05","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"open_ai":null,"ai":null,"created":"2024-02-13 14:50:42","updated":"2026-03-03 14:52:42"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/de\" title=\"Home\">Home<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/de\/doc-categories\/advanced-topics\/\" title=\"Advanced Topics\">Advanced Topics<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/de\/doc-categories\/using-custom-codes\/\" title=\"Using Custom Codes\">Using Custom Codes<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\tHow to add custom code snippets in WPCode\n<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/memberpress.com\/de"},{"label":"Advanced Topics","link":"https:\/\/memberpress.com\/de\/doc-categories\/advanced-topics\/"},{"label":"Using Custom Codes","link":"https:\/\/memberpress.com\/de\/doc-categories\/using-custom-codes\/"},{"label":"How to add custom code snippets in WPCode","link":"https:\/\/memberpress.com\/de\/docs\/how-to-add-custom-code-snippets-in-wpcode\/"}],"_links":{"self":[{"href":"https:\/\/memberpress.com\/de\/wp-json\/wp\/v2\/ht-kb\/62539","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/memberpress.com\/de\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/memberpress.com\/de\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/memberpress.com\/de\/wp-json\/wp\/v2\/users\/62252"}],"replies":[{"embeddable":true,"href":"https:\/\/memberpress.com\/de\/wp-json\/wp\/v2\/comments?post=62539"}],"version-history":[{"count":0,"href":"https:\/\/memberpress.com\/de\/wp-json\/wp\/v2\/ht-kb\/62539\/revisions"}],"wp:attachment":[{"href":"https:\/\/memberpress.com\/de\/wp-json\/wp\/v2\/media?parent=62539"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/memberpress.com\/de\/wp-json\/wp\/v2\/ht-kb-category?post=62539"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/memberpress.com\/de\/wp-json\/wp\/v2\/ht-kb-tag?post=62539"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}