{"id":10940,"date":"2019-10-10T17:30:29","date_gmt":"2019-10-10T15:30:29","guid":{"rendered":"https:\/\/www.strato.nl\/blog\/?p=10940"},"modified":"2021-07-15T16:51:34","modified_gmt":"2021-07-15T14:51:34","slug":"wordpress-plugin-maken","status":"publish","type":"post","link":"https:\/\/www.strato.nl\/blog\/wordpress-plugin-maken\/","title":{"rendered":"Gemakkelijk je eigen plug-ins voor WordPress maken"},"content":{"rendered":"\n<p><strong>Zelfs als WordPress-gebruiker met weinig PHP-kennis kun je verrassend eenvoudig je eigen plug-in schrijven. In dit blog laten we zien hoe dit werkt, en welke voordelen plug-ins hebben ten opzichte van code snippets in het <em>functions.php<\/em>-bestand van je thema.<\/strong><\/p>\n\n\n\n<p>Je hebt vast wel eens gezocht naar een eenvoudige manier om functies toe te voegen aan WordPress, zoals snelcodes, codefragmenten voor Google Analytics of een Custom Post Type te integreren. Meestal zie je code snippets die je kopieert en plakt in het bestand <em>functions.php<\/em> van je WordPress thema.<\/p>\n\n\n\n<p>Het veranderen van <em>functions.php<\/em> heeft echter nadelen:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Als je <em>functions.php<\/em> direct in het thema wijzigt, gaan de wijzigingen bij de volgende update verloren. Dus je moet er altijd een child-thema voor maken.<\/li><li>Als je op een dag je thema verandert, is het lastig om de veranderingen in het functions-bestand te selecteren en over te brengen naar het nieuwe thema.<\/li><li>Hoe meer je toevoegt in <em>functions.php<\/em>, hoe verwarrender het bestand wordt en hoe vervelender het oplossen van problemen.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">De oplossing: je eigen plug-in<\/h2>\n\n\n\n<p>Je kunt al deze problemen vermijden door de meeste van je aanpassingen en toevoegingen in je eigen WordPress plug-in te stoppen. Daar kun je comfortabel codefragmenten beheren. Als er een fout optreedt, haal je de plug-in voor een korte tijd offline en hoef je niet in het live-systeem te zoeken naar fouten in <em>functions.php<\/em>. Ook kun je zo&#8217;n plug-in meenemen naar een nieuw thema, wat vaak erg handig is.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Een plug-in maken is heel eenvoudig<\/h2>\n\n\n\n<p>Het programmeren van je eigen plug-in klinkt erg ingewikkeld, maar dat is het niet. Strikt genomen heb je alleen een paar regels tekst nodig in een nieuw PHP-bestand.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;?php\n\ndefined( 'ABSPATH' ) or die( 'No script kiddies please!' );\n\n\/* also read https:\/\/codex.wordpress.org\/Writing_a_Plugin *\/\n\n\/*\n\nPlugin Name: naam van de plug-in\n\nDescription: korte omschrijving\n\n*\/\n\n\/* Plug-in-code ONDER deze regel *\/\n\n\/* Plug-in-code BOVEN deze regel *\/<\/pre>\n\n\n\n<p>Sla dit bestand met een willekeurige bestandsnaam en de bestandsextensie .<em>php<\/em> op, maak een nieuwe map aan met een willekeurige naam in de plug-indirectory van WordPress (<em>\/wp-content\/plugins<\/em>) en sla het bestand daar op.<\/p>\n\n\n\n<p>Voor WordPress ge\u00efnstalleerd met <a href=\"https:\/\/www.strato.nl\/apps\/CustomerService#\/skl\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Website-apps in de STRATO klantenlogin (opens in a new tab)\">Website-apps in de STRATO klantenlogin<\/a> is de plug-in directory bijvoorbeeld <em>\/WordPress_01\/wp-content\/plugins\/<\/em>.<\/p>\n\n\n\n<div class=\"wp-block-image wp-image-11240 size-full\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"644\" height=\"211\" src=\"https:\/\/www.strato.nl\/blog\/wp-content\/uploads\/sites\/2\/2019\/10\/mijn-wordpress-plugin.png\" alt=\"Je eigen WordPress plug-in uploaden\" class=\"wp-image-11240\"\/><figcaption><em>Je plug-in hoort in dezelfde map op de server als alle andere WordPress-plug-ins.<\/em><\/figcaption><\/figure><\/div>\n\n\n\n<p>Zorg ervoor dat de naam van je plug-in uniek is en niet de naam heeft van een andere plug-in.<\/p>\n\n\n\n<p>Vervolgens moet je de nieuw aangemaakte plug-in in WordPress activeren. Nu heb je je eigen WordPress-plug-in, maar zonder enige functie.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Eigen functionaliteit toevoegen<\/strong><\/h2>\n\n\n\n<p>Vanaf nu plaats je nieuwe code snippets in deze plug-in, in plaats van ze te kopi\u00ebren naar <em>functions.php<\/em> van je thema. Indien nodig, kun je natuurlijk de eerder ingevoegde code van <em>functions.php<\/em> hier plaatsen.<\/p>\n\n\n\n<p>De mogelijkheden zijn legio, van korte code snippets met handige detailfuncties tot shortcodes en aangepaste berichttypes &#8211; alles wat je kunt doen in <em>functions.php<\/em>.<\/p>\n\n\n\n<p>Om te laten zien hoe je plug-in in de praktijk werkt, geven we een nieuwe shortcode als voorbeeld. We willen Google Maps in de posts opnemen en de breedte en hoogte daarvan individueel defini\u00ebren. De shortcode moet er zo uitzien:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">[map width=\"600\" height=\"400\" src=\"https:\/\/www.google.com\/maps\/embed?...\"]<\/pre>\n\n\n\n<figure class=\"wp-block-image alignnone size-full wp-image-11125\"><img loading=\"lazy\" decoding=\"async\" width=\"728\" height=\"319\" src=\"https:\/\/www.strato.nl\/blog\/wp-content\/uploads\/sites\/2\/2019\/10\/googlemaps_embedden-1.png\" alt=\"googlemaps_embedden\" class=\"wp-image-11125\"\/><figcaption><em>Met de shortcode bepaal je de breedte, de hoogte en de URL van de kaart.<\/em><\/figcaption><\/figure>\n\n\n\n<p>Onze plug-in met de PHP-code ziet er zo uit:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;?php\n\n\/*\n\nPlugin Name: mijn eigen plug-in\n\nDescription: speciale functies en code voor mijn blog\n*\/\n\n\/* Shortcode [map width=\"\" height=\"\" src=\"\"] - Google Maps invoegen *\/\n\nfunction MijnGoogleMap($atts) {\n\n       extract(shortcode_atts(array(\n\n                    \"width\" => '800',\n\n                    \"height\" => '600',\n\n                    \"src\" =>\"\n\n                    ), $atts));\n\n      return &lt;iframe width=\"'.$width.'\" height=\"'.$height.'\" frameborder=\"0\" scrolling=\"no\" marginheight=\"0\" marginwidth=\"0\" src=\"'.$src.'\">&lt;\/iframe>';\n\n}\n\nadd_shortcode(\"map\", \"MijnGoogleMap\");\n\n?><\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"728\" height=\"478\" src=\"https:\/\/www.strato.nl\/blog\/wp-content\/uploads\/sites\/2\/2021\/04\/GOOGLE-maps-embedden.jpg\" alt=\"Google Maps op je website embedden\" class=\"wp-image-30245\" srcset=\"https:\/\/www.strato.nl\/blog\/wp-content\/uploads\/sites\/2\/2021\/04\/GOOGLE-maps-embedden.jpg 728w, https:\/\/www.strato.nl\/blog\/wp-content\/uploads\/sites\/2\/2021\/04\/GOOGLE-maps-embedden-300x197.jpg 300w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><figcaption><em>De shortcode-functie in je plug-in doet de rest.<\/em><\/figcaption><\/figure><\/div>\n\n\n\n<p>De URL die in de shortcode in het attribuut <em>src<\/em> moet worden ingevoegd, is overigens de URL die Google Maps uitvoert onder <em>\u2018Share\u2019 \u2013 \u2018Embed map\u2019<\/em>.<\/p>\n\n\n\n<p>We laten de details van de shortcode overigens even voor wat ze zijn. Deze blogpost gaat vooral over het invoegen van code in het plug-in-bestand.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Welke code hoort in de plug-in, welke niet?<\/strong><\/h2>\n\n\n\n<p>Alle code die niet direct iets met je thema te maken heeft, hoort in een plug-in thuis. Dit zijn dus functies die ook los van het thema nuttig zijn.<\/p>\n\n\n\n<p>Omgekeerd moet je alles wat een directe invloed heeft op het thema, voortbouwt op de functies of deze wijzigt, in <em>functions.php<\/em> laten staan. Een typisch voorbeeld is de definitie van extra afbeeldingsformaten voor de mediabibliotheek.<\/p>\n\n\n\n<p>Want als je later het thema verandert, wordt al deze code in de plug-in ineens \u2018dakloos\u2019 en vormt het alleen een onnodige vervuiling van WordPress.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Tip: structureer je plug-in met commentaarregels<\/strong><\/h2>\n\n\n\n<p>Meestal bevat een plug-in precies \u00e9\u00e9n functie. Maar in je individuele plug-in staan diverse onafhankelijke code snippets. Om daar later de weg in te kunnen vinden, moet je orde scheppen en alles goed documenteren &#8211; bij voorkeur buiten de plug-in, om de code niet onnodig te vervuilen.<\/p>\n\n\n\n<figure class=\"wp-block-image alignnone wp-image-11155\"><img loading=\"lazy\" decoding=\"async\" width=\"1535\" height=\"736\" src=\"https:\/\/www.strato.nl\/blog\/wp-content\/uploads\/sites\/2\/2019\/10\/mijn_plugin_documenteren.png\" alt=\"mijn_plugin_documenteren\" class=\"wp-image-11155\"\/><figcaption><em>In de plug-incode maakt een kort commentaar duidelijk welke functies erin staan.<\/em><\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image alignnone wp-image-11160\"><img loading=\"lazy\" decoding=\"async\" width=\"1087\" height=\"614\" src=\"https:\/\/www.strato.nl\/blog\/wp-content\/uploads\/sites\/2\/2019\/10\/Documentatie_plugin.png\" alt=\"Documentatie_plugin\" class=\"wp-image-11160\"\/><figcaption><em>En in een afzonderlijk bestand kun je alle aanvullende informatie uitvoerig documenteren.<\/em><\/figcaption><\/figure>\n\n\n\n<p>Geef elke functie in de plug-in een naam of een korte omschrijving via PHP-commentaar <em>\/*-commentaar *\/<\/em> en maak vervolgens een apart tekstbestand aan waarin je details over deze functies vermeldt. Vermeld ook zeker de bron van het codefragment. Dan kun je die bron later nog eens raadplegen voor oplossingen bij problemen en om eventuele updates te vinden.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Ben je nog op zoek naar hosting voor je WordPress site?<\/strong><\/h2>\n\n\n<a href=\"https:\/\/www.strato.nl\/hosting\/wordpress-hosting\/?utm_source=Blogartikel&#038;utm_medium=Blogartikel&#038;utm_campaign=wordpress-plugin-maken&#038;campaign=strato.nl\/blog\/Artikel\/wordpress-plugin-maken&#038;swtssa=nedsc0000000000000000tffc\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"btn btn-strato-blue strato-c2a\">Naar onze WordPress pakketten<\/a>","protected":false},"excerpt":{"rendered":"<p>Zelfs als WordPress-gebruiker met weinig PHP-kennis kun je verrassend eenvoudig je eigen plug-in schrijven. In dit blog laten we zien hoe dit werkt, en welke voordelen plug-ins hebben ten opzichte van code snippets in het functions.php-bestand van je thema. Je hebt vast wel eens gezocht naar een eenvoudige manier om functies toe te voegen aan [&hellip;]<\/p>\n","protected":false},"author":54,"featured_media":30234,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[415],"tags":[168],"class_list":["post-10940","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress","tag-plug-in"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Je eigen plug-ins voor WordPress maken<\/title>\n<meta name=\"description\" content=\"Functionaliteit toevoegen aan je website: Lees hoe je zelf een WordPress-plug-in kunt maken zonder geavanceerde php-kennis.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.strato.nl\/blog\/wordpress-plugin-maken\/\" \/>\n<meta property=\"og:locale\" content=\"nl_NL\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Je eigen plug-ins voor WordPress maken\" \/>\n<meta property=\"og:description\" content=\"Functionaliteit toevoegen aan je website: Lees hoe je zelf een WordPress-plug-in kunt maken zonder geavanceerde php-kennis.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.strato.nl\/blog\/wordpress-plugin-maken\/\" \/>\n<meta property=\"og:site_name\" content=\"STRATO blogt\" \/>\n<meta property=\"article:published_time\" content=\"2019-10-10T15:30:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-07-15T14:51:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.strato.nl\/blog\/wp-content\/uploads\/sites\/2\/2019\/10\/STRATO-Eigenes-Wordpress-Plugin-728x410-min.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"728\" \/>\n\t<meta property=\"og:image:height\" content=\"410\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Franz Neumeier\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Geschreven door\" \/>\n\t<meta name=\"twitter:data1\" content=\"Franz Neumeier\" \/>\n\t<meta name=\"twitter:label2\" content=\"Geschatte leestijd\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.strato.nl\/blog\/wordpress-plugin-maken\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.strato.nl\/blog\/wordpress-plugin-maken\/\"},\"author\":{\"name\":\"Franz Neumeier\",\"@id\":\"https:\/\/www.strato.nl\/blog\/#\/schema\/person\/373693d0ed46f90f144b785753c77481\"},\"headline\":\"Gemakkelijk je eigen plug-ins voor WordPress maken\",\"datePublished\":\"2019-10-10T15:30:29+00:00\",\"dateModified\":\"2021-07-15T14:51:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.strato.nl\/blog\/wordpress-plugin-maken\/\"},\"wordCount\":820,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.strato.nl\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.strato.nl\/blog\/wordpress-plugin-maken\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.strato.nl\/blog\/wp-content\/uploads\/sites\/2\/2019\/10\/STRATO-Eigenes-Wordpress-Plugin-728x410-min.jpg\",\"keywords\":[\"Plug-in\"],\"articleSection\":[\"WordPress\"],\"inLanguage\":\"nl-NL\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.strato.nl\/blog\/wordpress-plugin-maken\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.strato.nl\/blog\/wordpress-plugin-maken\/\",\"url\":\"https:\/\/www.strato.nl\/blog\/wordpress-plugin-maken\/\",\"name\":\"Je eigen plug-ins voor WordPress maken\",\"isPartOf\":{\"@id\":\"https:\/\/www.strato.nl\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.strato.nl\/blog\/wordpress-plugin-maken\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.strato.nl\/blog\/wordpress-plugin-maken\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.strato.nl\/blog\/wp-content\/uploads\/sites\/2\/2019\/10\/STRATO-Eigenes-Wordpress-Plugin-728x410-min.jpg\",\"datePublished\":\"2019-10-10T15:30:29+00:00\",\"dateModified\":\"2021-07-15T14:51:34+00:00\",\"description\":\"Functionaliteit toevoegen aan je website: Lees hoe je zelf een WordPress-plug-in kunt maken zonder geavanceerde php-kennis.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.strato.nl\/blog\/wordpress-plugin-maken\/#breadcrumb\"},\"inLanguage\":\"nl-NL\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.strato.nl\/blog\/wordpress-plugin-maken\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"nl-NL\",\"@id\":\"https:\/\/www.strato.nl\/blog\/wordpress-plugin-maken\/#primaryimage\",\"url\":\"https:\/\/www.strato.nl\/blog\/wp-content\/uploads\/sites\/2\/2019\/10\/STRATO-Eigenes-Wordpress-Plugin-728x410-min.jpg\",\"contentUrl\":\"https:\/\/www.strato.nl\/blog\/wp-content\/uploads\/sites\/2\/2019\/10\/STRATO-Eigenes-Wordpress-Plugin-728x410-min.jpg\",\"width\":728,\"height\":410,\"caption\":\"Gemakkelijk je eigen WordPress-plug-in maken\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.strato.nl\/blog\/wordpress-plugin-maken\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.strato.nl\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Gemakkelijk je eigen plug-ins voor WordPress maken\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.strato.nl\/blog\/#website\",\"url\":\"https:\/\/www.strato.nl\/blog\/\",\"name\":\"STRATO blogt\",\"description\":\"Nieuws en tips over webhosting!\",\"publisher\":{\"@id\":\"https:\/\/www.strato.nl\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.strato.nl\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"nl-NL\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.strato.nl\/blog\/#organization\",\"name\":\"STRATO blogt\",\"url\":\"https:\/\/www.strato.nl\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"nl-NL\",\"@id\":\"https:\/\/www.strato.nl\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.strato.nl\/blog\/wp-content\/uploads\/sites\/2\/2019\/11\/strato_signet_blogt_nl_wei\u00df.png\",\"contentUrl\":\"https:\/\/www.strato.nl\/blog\/wp-content\/uploads\/sites\/2\/2019\/11\/strato_signet_blogt_nl_wei\u00df.png\",\"width\":259,\"height\":42,\"caption\":\"STRATO blogt\"},\"image\":{\"@id\":\"https:\/\/www.strato.nl\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.strato.nl\/blog\/#\/schema\/person\/373693d0ed46f90f144b785753c77481\",\"name\":\"Franz Neumeier\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"nl-NL\",\"@id\":\"https:\/\/www.strato.nl\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/bbbb301a12a8cb3a3f9f2a89694e51c19477f3b6eb45207b5af5c333303a055a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/bbbb301a12a8cb3a3f9f2a89694e51c19477f3b6eb45207b5af5c333303a055a?s=96&d=mm&r=g\",\"caption\":\"Franz Neumeier\"},\"description\":\"Ich bin Franz Neumeier, war jahrelang Chefredakteur bei IT-Zeitschriften wie PC Professionell, Internet Professionell und Internet Magazin. Inzwischen habe ich mich als freier Autor vor allem auf Kreuzfahrt-Themen spezialisiert, betreibe mehrere Websites und schreibe aus diesen Praxiserfahrungen heraus weiterhin auch \u00fcber Webhosting- und Webpublishing-Themen.\",\"url\":\"https:\/\/www.strato.nl\/blog\/author\/neumeier\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Je eigen plug-ins voor WordPress maken","description":"Functionaliteit toevoegen aan je website: Lees hoe je zelf een WordPress-plug-in kunt maken zonder geavanceerde php-kennis.","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:\/\/www.strato.nl\/blog\/wordpress-plugin-maken\/","og_locale":"nl_NL","og_type":"article","og_title":"Je eigen plug-ins voor WordPress maken","og_description":"Functionaliteit toevoegen aan je website: Lees hoe je zelf een WordPress-plug-in kunt maken zonder geavanceerde php-kennis.","og_url":"https:\/\/www.strato.nl\/blog\/wordpress-plugin-maken\/","og_site_name":"STRATO blogt","article_published_time":"2019-10-10T15:30:29+00:00","article_modified_time":"2021-07-15T14:51:34+00:00","og_image":[{"width":728,"height":410,"url":"https:\/\/www.strato.nl\/blog\/wp-content\/uploads\/sites\/2\/2019\/10\/STRATO-Eigenes-Wordpress-Plugin-728x410-min.jpg","type":"image\/jpeg"}],"author":"Franz Neumeier","twitter_card":"summary_large_image","twitter_misc":{"Geschreven door":"Franz Neumeier","Geschatte leestijd":"5 minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.strato.nl\/blog\/wordpress-plugin-maken\/#article","isPartOf":{"@id":"https:\/\/www.strato.nl\/blog\/wordpress-plugin-maken\/"},"author":{"name":"Franz Neumeier","@id":"https:\/\/www.strato.nl\/blog\/#\/schema\/person\/373693d0ed46f90f144b785753c77481"},"headline":"Gemakkelijk je eigen plug-ins voor WordPress maken","datePublished":"2019-10-10T15:30:29+00:00","dateModified":"2021-07-15T14:51:34+00:00","mainEntityOfPage":{"@id":"https:\/\/www.strato.nl\/blog\/wordpress-plugin-maken\/"},"wordCount":820,"commentCount":0,"publisher":{"@id":"https:\/\/www.strato.nl\/blog\/#organization"},"image":{"@id":"https:\/\/www.strato.nl\/blog\/wordpress-plugin-maken\/#primaryimage"},"thumbnailUrl":"https:\/\/www.strato.nl\/blog\/wp-content\/uploads\/sites\/2\/2019\/10\/STRATO-Eigenes-Wordpress-Plugin-728x410-min.jpg","keywords":["Plug-in"],"articleSection":["WordPress"],"inLanguage":"nl-NL","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.strato.nl\/blog\/wordpress-plugin-maken\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.strato.nl\/blog\/wordpress-plugin-maken\/","url":"https:\/\/www.strato.nl\/blog\/wordpress-plugin-maken\/","name":"Je eigen plug-ins voor WordPress maken","isPartOf":{"@id":"https:\/\/www.strato.nl\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.strato.nl\/blog\/wordpress-plugin-maken\/#primaryimage"},"image":{"@id":"https:\/\/www.strato.nl\/blog\/wordpress-plugin-maken\/#primaryimage"},"thumbnailUrl":"https:\/\/www.strato.nl\/blog\/wp-content\/uploads\/sites\/2\/2019\/10\/STRATO-Eigenes-Wordpress-Plugin-728x410-min.jpg","datePublished":"2019-10-10T15:30:29+00:00","dateModified":"2021-07-15T14:51:34+00:00","description":"Functionaliteit toevoegen aan je website: Lees hoe je zelf een WordPress-plug-in kunt maken zonder geavanceerde php-kennis.","breadcrumb":{"@id":"https:\/\/www.strato.nl\/blog\/wordpress-plugin-maken\/#breadcrumb"},"inLanguage":"nl-NL","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.strato.nl\/blog\/wordpress-plugin-maken\/"]}]},{"@type":"ImageObject","inLanguage":"nl-NL","@id":"https:\/\/www.strato.nl\/blog\/wordpress-plugin-maken\/#primaryimage","url":"https:\/\/www.strato.nl\/blog\/wp-content\/uploads\/sites\/2\/2019\/10\/STRATO-Eigenes-Wordpress-Plugin-728x410-min.jpg","contentUrl":"https:\/\/www.strato.nl\/blog\/wp-content\/uploads\/sites\/2\/2019\/10\/STRATO-Eigenes-Wordpress-Plugin-728x410-min.jpg","width":728,"height":410,"caption":"Gemakkelijk je eigen WordPress-plug-in maken"},{"@type":"BreadcrumbList","@id":"https:\/\/www.strato.nl\/blog\/wordpress-plugin-maken\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.strato.nl\/blog\/"},{"@type":"ListItem","position":2,"name":"Gemakkelijk je eigen plug-ins voor WordPress maken"}]},{"@type":"WebSite","@id":"https:\/\/www.strato.nl\/blog\/#website","url":"https:\/\/www.strato.nl\/blog\/","name":"STRATO blogt","description":"Nieuws en tips over webhosting!","publisher":{"@id":"https:\/\/www.strato.nl\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.strato.nl\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"nl-NL"},{"@type":"Organization","@id":"https:\/\/www.strato.nl\/blog\/#organization","name":"STRATO blogt","url":"https:\/\/www.strato.nl\/blog\/","logo":{"@type":"ImageObject","inLanguage":"nl-NL","@id":"https:\/\/www.strato.nl\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.strato.nl\/blog\/wp-content\/uploads\/sites\/2\/2019\/11\/strato_signet_blogt_nl_wei\u00df.png","contentUrl":"https:\/\/www.strato.nl\/blog\/wp-content\/uploads\/sites\/2\/2019\/11\/strato_signet_blogt_nl_wei\u00df.png","width":259,"height":42,"caption":"STRATO blogt"},"image":{"@id":"https:\/\/www.strato.nl\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.strato.nl\/blog\/#\/schema\/person\/373693d0ed46f90f144b785753c77481","name":"Franz Neumeier","image":{"@type":"ImageObject","inLanguage":"nl-NL","@id":"https:\/\/www.strato.nl\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/bbbb301a12a8cb3a3f9f2a89694e51c19477f3b6eb45207b5af5c333303a055a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/bbbb301a12a8cb3a3f9f2a89694e51c19477f3b6eb45207b5af5c333303a055a?s=96&d=mm&r=g","caption":"Franz Neumeier"},"description":"Ich bin Franz Neumeier, war jahrelang Chefredakteur bei IT-Zeitschriften wie PC Professionell, Internet Professionell und Internet Magazin. Inzwischen habe ich mich als freier Autor vor allem auf Kreuzfahrt-Themen spezialisiert, betreibe mehrere Websites und schreibe aus diesen Praxiserfahrungen heraus weiterhin auch \u00fcber Webhosting- und Webpublishing-Themen.","url":"https:\/\/www.strato.nl\/blog\/author\/neumeier\/"}]}},"_links":{"self":[{"href":"https:\/\/www.strato.nl\/blog\/wp-json\/wp\/v2\/posts\/10940","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.strato.nl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.strato.nl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.strato.nl\/blog\/wp-json\/wp\/v2\/users\/54"}],"replies":[{"embeddable":true,"href":"https:\/\/www.strato.nl\/blog\/wp-json\/wp\/v2\/comments?post=10940"}],"version-history":[{"count":17,"href":"https:\/\/www.strato.nl\/blog\/wp-json\/wp\/v2\/posts\/10940\/revisions"}],"predecessor-version":[{"id":31168,"href":"https:\/\/www.strato.nl\/blog\/wp-json\/wp\/v2\/posts\/10940\/revisions\/31168"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.strato.nl\/blog\/wp-json\/wp\/v2\/media\/30234"}],"wp:attachment":[{"href":"https:\/\/www.strato.nl\/blog\/wp-json\/wp\/v2\/media?parent=10940"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.strato.nl\/blog\/wp-json\/wp\/v2\/categories?post=10940"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.strato.nl\/blog\/wp-json\/wp\/v2\/tags?post=10940"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}