{"id":4578,"date":"2025-12-18T09:33:07","date_gmt":"2025-12-18T15:33:07","guid":{"rendered":"https:\/\/racmanuel.dev\/?post_type=tools&#038;p=4578"},"modified":"2025-12-18T11:16:21","modified_gmt":"2025-12-18T17:16:21","slug":"plugin-header-generator-wordpress","status":"publish","type":"tools","link":"https:\/\/racmanuel.dev\/tools\/plugin-header-generator-wordpress\/","title":{"rendered":"Plugin Header Generator (WordPress)"},"content":{"rendered":"\t\t<div class=\"tfd-phg-wrap\" id=\"phg-43e4ca79-634f-434f-a0d4-717395fcf4e5\" data-tfd-phg=\"1\">\r\n\r\n\t\t\t<p class=\"tfd-phg-desc\">\r\n\t\t\t\tGenerate a WordPress plugin header (plugin file comment block). Fill the fields, then click \u201cGenerate header\u201d to copy the result.\t\t\t<\/p>\r\n\r\n\t\t\t<div class=\"tfd-phg-row\">\r\n\t\t\t\t<div class=\"tfd-phg-field\">\r\n\t\t\t\t\t<label\r\n\t\t\t\t\t\tfor=\"phg-43e4ca79-634f-434f-a0d4-717395fcf4e5-name\">Plugin Name<\/label>\r\n\t\t\t\t\t<input id=\"phg-43e4ca79-634f-434f-a0d4-717395fcf4e5-name\" type=\"text\" value=\"\"\r\n\t\t\t\t\t\tplaceholder=\"My Plugin\">\r\n\t\t\t\t<\/div>\r\n\r\n\t\t\t\t<div class=\"tfd-phg-field\">\r\n\t\t\t\t\t<label\r\n\t\t\t\t\t\tfor=\"phg-43e4ca79-634f-434f-a0d4-717395fcf4e5-uri\">Plugin URL<\/label>\r\n\t\t\t\t\t<input id=\"phg-43e4ca79-634f-434f-a0d4-717395fcf4e5-uri\" type=\"text\" value=\"\"\r\n\t\t\t\t\t\tplaceholder=\"https:\/\/example.com\/my-plugin\">\r\n\t\t\t\t<\/div>\r\n\r\n\t\t\t\t<div class=\"tfd-phg-field tfd-phg-field--sm\">\r\n\t\t\t\t\t<label\r\n\t\t\t\t\t\tfor=\"phg-43e4ca79-634f-434f-a0d4-717395fcf4e5-version\">Version<\/label>\r\n\t\t\t\t\t<input id=\"phg-43e4ca79-634f-434f-a0d4-717395fcf4e5-version\" type=\"text\" value=\"1.0.0\"\r\n\t\t\t\t\t\tplaceholder=\"1.0.0\">\r\n\t\t\t\t<\/div>\r\n\t\t\t<\/div>\r\n\r\n\t\t\t<div class=\"tfd-phg-row\">\r\n\t\t\t\t<div class=\"tfd-phg-field tfd-phg-field--wide\">\r\n\t\t\t\t\t<label\r\n\t\t\t\t\t\tfor=\"phg-43e4ca79-634f-434f-a0d4-717395fcf4e5-desc\">Description<\/label>\r\n\t\t\t\t\t<input id=\"phg-43e4ca79-634f-434f-a0d4-717395fcf4e5-desc\" type=\"text\" value=\"\"\r\n\t\t\t\t\t\tplaceholder=\"A short description of what your plugin does\">\r\n\t\t\t\t<\/div>\r\n\t\t\t<\/div>\r\n\r\n\t\t\t<div class=\"tfd-phg-row\">\r\n\t\t\t\t<div class=\"tfd-phg-field\">\r\n\t\t\t\t\t<label\r\n\t\t\t\t\t\tfor=\"phg-43e4ca79-634f-434f-a0d4-717395fcf4e5-author\">Author<\/label>\r\n\t\t\t\t\t<input id=\"phg-43e4ca79-634f-434f-a0d4-717395fcf4e5-author\" type=\"text\" value=\"\"\r\n\t\t\t\t\t\tplaceholder=\"John Doe\">\r\n\t\t\t\t<\/div>\r\n\r\n\t\t\t\t<div class=\"tfd-phg-field\">\r\n\t\t\t\t\t<label\r\n\t\t\t\t\t\tfor=\"phg-43e4ca79-634f-434f-a0d4-717395fcf4e5-author-uri\">Author URL<\/label>\r\n\t\t\t\t\t<input id=\"phg-43e4ca79-634f-434f-a0d4-717395fcf4e5-author-uri\" type=\"text\" value=\"\"\r\n\t\t\t\t\t\tplaceholder=\"https:\/\/example.com\">\r\n\t\t\t\t<\/div>\r\n\r\n\t\t\t\t<div class=\"tfd-phg-field tfd-phg-field--sm\">\r\n\t\t\t\t\t<label\r\n\t\t\t\t\t\tfor=\"phg-43e4ca79-634f-434f-a0d4-717395fcf4e5-network\">Network<\/label>\r\n\t\t\t\t\t<select id=\"phg-43e4ca79-634f-434f-a0d4-717395fcf4e5-network\">\r\n\t\t\t\t\t\t<option value=\"false\"  selected='selected'>\r\n\t\t\t\t\t\t\tNo\t\t\t\t\t\t<\/option>\r\n\t\t\t\t\t\t<option value=\"true\" >\r\n\t\t\t\t\t\t\tYes\t\t\t\t\t\t<\/option>\r\n\t\t\t\t\t<\/select>\r\n\t\t\t\t<\/div>\r\n\t\t\t<\/div>\r\n\r\n\t\t\t<div class=\"tfd-phg-row\">\r\n\t\t\t\t<div class=\"tfd-phg-field\">\r\n\t\t\t\t\t<label\r\n\t\t\t\t\t\tfor=\"phg-43e4ca79-634f-434f-a0d4-717395fcf4e5-license\">License<\/label>\r\n\t\t\t\t\t<input id=\"phg-43e4ca79-634f-434f-a0d4-717395fcf4e5-license\" type=\"text\" value=\"GPL v2 or later\"\r\n\t\t\t\t\t\tplaceholder=\"GPL v2 or later\">\r\n\t\t\t\t<\/div>\r\n\r\n\t\t\t\t<div class=\"tfd-phg-field\">\r\n\t\t\t\t\t<label\r\n\t\t\t\t\t\tfor=\"phg-43e4ca79-634f-434f-a0d4-717395fcf4e5-license-uri\">License URL<\/label>\r\n\t\t\t\t\t<input id=\"phg-43e4ca79-634f-434f-a0d4-717395fcf4e5-license-uri\" type=\"text\" value=\"https:\/\/www.gnu.org\/licenses\/gpl-2.0.html\"\r\n\t\t\t\t\t\tplaceholder=\"https:\/\/www.gnu.org\/licenses\/gpl-2.0.html\">\r\n\t\t\t\t<\/div>\r\n\t\t\t<\/div>\r\n\r\n\t\t\t<div class=\"tfd-phg-row\">\r\n\t\t\t\t<div class=\"tfd-phg-field\">\r\n\t\t\t\t\t<label\r\n\t\t\t\t\t\tfor=\"phg-43e4ca79-634f-434f-a0d4-717395fcf4e5-text-domain\">Text Domain<\/label>\r\n\t\t\t\t\t<input id=\"phg-43e4ca79-634f-434f-a0d4-717395fcf4e5-text-domain\" type=\"text\" value=\"\"\r\n\t\t\t\t\t\tplaceholder=\"my-plugin\">\r\n\t\t\t\t<\/div>\r\n\r\n\t\t\t\t<div class=\"tfd-phg-field\">\r\n\t\t\t\t\t<label\r\n\t\t\t\t\t\tfor=\"phg-43e4ca79-634f-434f-a0d4-717395fcf4e5-domain-path\">Domain Path<\/label>\r\n\t\t\t\t\t<input id=\"phg-43e4ca79-634f-434f-a0d4-717395fcf4e5-domain-path\" type=\"text\" value=\"\/languages\"\r\n\t\t\t\t\t\tplaceholder=\"\/languages\">\r\n\t\t\t\t<\/div>\r\n\r\n\t\t\t\t<div class=\"tfd-phg-field\">\r\n\t\t\t\t\t<label\r\n\t\t\t\t\t\tfor=\"phg-43e4ca79-634f-434f-a0d4-717395fcf4e5-required\">Required Plugins<\/label>\r\n\t\t\t\t\t<input id=\"phg-43e4ca79-634f-434f-a0d4-717395fcf4e5-required\" type=\"text\" value=\"\"\r\n\t\t\t\t\t\tplaceholder=\"e.g. woocommerce, wp-crontrol\">\r\n\t\t\t\t<\/div>\r\n\t\t\t<\/div>\r\n\r\n\t\t\t<div class=\"tfd-phg-checks\">\r\n\t\t\t\t<label class=\"tfd-phg-check\">\r\n\t\t\t\t\t<input type=\"checkbox\" id=\"phg-43e4ca79-634f-434f-a0d4-717395fcf4e5-woo\">\r\n\t\t\t\t\t<span>WooCommerce<\/span>\r\n\t\t\t\t<\/label>\r\n\t\t\t<\/div>\r\n\r\n\t\t\t<div class=\"tfd-phg-actions\">\r\n\t\t\t\t<button class=\"tfd-phg-btn\" type=\"button\" data-action=\"generate\">\r\n\t\t\t\t\tGenerate header\t\t\t\t<\/button>\r\n\r\n\t\t\t\t<span class=\"tfd-phg-toast\" data-toast style=\"display:none;\">\r\n\t\t\t\t\tCopied to clipboard.\t\t\t\t<\/span>\r\n\t\t\t<\/div>\r\n\r\n\t\t\t<div class=\"tfd-phg-out\">\r\n\t\t\t\t<textarea readonly id=\"phg-43e4ca79-634f-434f-a0d4-717395fcf4e5-out\"\r\n\t\t\t\t\tplaceholder=\"Your plugin header will appear here...\"><\/textarea>\r\n\t\t\t<\/div>\r\n\r\n\t\t<\/div>\r\n\t\t\n\n\n\n<p>Creating a WordPress plugin starts with a correct plugin header. This tool generates a clean, standards-friendly <strong>WordPress plugin header block<\/strong> using common fields and optional requirements, so you can copy, paste, and move on faster.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"what-is-a-wordpress-plugin-header\">What Is a WordPress Plugin Header?<\/h2>\n\n\n\n<p>The plugin header is the comment block at the top of your main plugin file. WordPress reads this block to display your plugin\u2019s name, version, author, text domain, and other metadata inside the admin plugins screen.<\/p>\n\n\n\n<p>A proper header helps ensure:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>WordPress detects your plugin correctly<\/li>\n\n\n\n<li>Your metadata is consistent across environments<\/li>\n\n\n\n<li>Your plugin is ready for distribution (including WordPress.org)<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"what-this-plugin-header-generator-does\">What This Plugin Header Generator Does<\/h2>\n\n\n\n<p>This generator creates a ready-to-use plugin header that includes:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Plugin Name<\/li>\n\n\n\n<li>Description<\/li>\n\n\n\n<li>Version<\/li>\n\n\n\n<li>Requires at least (WordPress)<\/li>\n\n\n\n<li>Requires PHP<\/li>\n\n\n\n<li>Tested up to<\/li>\n\n\n\n<li>Author \/ Author URI<\/li>\n\n\n\n<li>Plugin URI<\/li>\n\n\n\n<li>License \/ License URI<\/li>\n\n\n\n<li>Text Domain \/ Domain Path<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"optional-features\">Optional features<\/h3>\n\n\n\n<p>Depending on your UI options, it can also generate:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A <strong>\u201cRequires Plugins\u201d<\/strong> header line (for example, WooCommerce)<\/li>\n\n\n\n<li>Additional required plugins as a comma-separated list<\/li>\n<\/ul>\n\n\n\n<p>If WooCommerce is selected, the generator automatically adds:<\/p>\n\n\n\n<p><code>Requires Plugins: woocommerce<\/code><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how-to-use-the-plugin-header-generator\">How to Use the Plugin Header Generator<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Fill in your plugin information (name, version, description, etc.).<\/li>\n\n\n\n<li>Choose optional requirements (WooCommerce and\/or required plugins).<\/li>\n\n\n\n<li>Click <strong>Generate<\/strong>.<\/li>\n\n\n\n<li>Copy the header and paste it into the top of your main plugin file (for example: <code>my-plugin.php<\/code>).<\/li>\n<\/ol>\n\n\n\n<p>The output is displayed in a readable code editor (CodeMirror) and can be copied with one click.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"best-practices-quick-notes\">Best Practices (Quick Notes)<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Keep the <strong>Description<\/strong> short and clear.<\/li>\n\n\n\n<li>Make sure <strong>Text Domain<\/strong> matches your translation loading logic.<\/li>\n\n\n\n<li>Use a real <strong>License<\/strong> value compatible with WordPress.org (commonly GPLv2 or later).<\/li>\n\n\n\n<li>If your plugin truly depends on another plugin, declare it in <strong>Requires Plugins<\/strong>.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"important-note\">Important Note<\/h2>\n\n\n\n<p>This tool generates the header block only. It does not create plugin files automatically \u2014 it gives you clean metadata that you can use in your plugin scaffold.<br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Generate a WordPress plugin header block with common fields and optional requirements like WooCommerce. Copy and paste a standards-friendly header in seconds.<\/p>\n","protected":false},"author":1,"featured_media":0,"template":"","meta":{"_acf_changed":false,"_gspb_post_css":"","_uag_custom_page_level_css":"","_glsr_average":0,"_glsr_ranking":0,"_glsr_reviews":0},"class_list":["post-4578","tools","type-tools","status-publish","hentry"],"blocksy_meta":[],"acf":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"woocommerce_archive_thumbnail":false,"gform-image-choice-sm":false,"gform-image-choice-md":false,"gform-image-choice-lg":false,"woocommerce_thumbnail":false,"woocommerce_single":false,"woocommerce_gallery_thumbnail":false},"uagb_author_info":{"display_name":"racmanuel","author_link":"https:\/\/racmanuel.dev\/author\/ra_cm\/"},"uagb_comment_info":0,"uagb_excerpt":"Generate a WordPress plugin header block with common fields and optional requirements like WooCommerce. Copy and paste a standards-friendly header in seconds.","_links":{"self":[{"href":"https:\/\/racmanuel.dev\/wp-json\/wp\/v2\/tools\/4578","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/racmanuel.dev\/wp-json\/wp\/v2\/tools"}],"about":[{"href":"https:\/\/racmanuel.dev\/wp-json\/wp\/v2\/types\/tools"}],"author":[{"embeddable":true,"href":"https:\/\/racmanuel.dev\/wp-json\/wp\/v2\/users\/1"}],"wp:attachment":[{"href":"https:\/\/racmanuel.dev\/wp-json\/wp\/v2\/media?parent=4578"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}