{"id":3175,"date":"2014-07-04T00:00:01","date_gmt":"2014-07-04T04:00:01","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2014\/07\/04\/wordpress-plugin-file-header\/"},"modified":"2021-08-16T22:58:33","modified_gmt":"2021-08-17T02:58:33","slug":"wordpress-plugin-file-header","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-plugin-file-header\/","title":{"rendered":"WordPress plugin file header"},"content":{"rendered":"<p>When <a href=\"\/support\/edu\/wordpress\/plugins\/create-a-wordpress-plugin\/\" target=\"_blank\" rel=\"noopener\">creating a WordPress plugin<\/a>, you use the <strong>File Header<\/strong> to store info about your plugin such as the plugin name and description.<\/p>\n<p>These file headers are necessary for WordPress to understand that the PHP script you create is a plugin it can use.<\/p>\n<h2>Required File Headers for plugins<\/h2>\n<p>For WordPress to understand your plugin, you need to add at least the <span style=\"color: red;\">highlighted<\/span> File Headers below:<\/p>\n<pre class=\"cli\" style=\"margin-bottom: 15px;\">&lt;?php \/* <span style=\"color: red;\">Plugin name<\/span>: WordPress Extra Post Info <span style=\"color: red;\">Plugin URI<\/span>: https:\/\/example.com\/wordpress-extra-post-info <span style=\"color: red;\">Description<\/span>: A simple plugin to add extra info to posts. <span style=\"color: red;\">Author<\/span>: Jacob Nicholson <span style=\"color: red;\">Author URI<\/span>: https:\/\/InMotionHosting.com <span style=\"color: red;\">Version:<\/span> 0.5 *\/  ?&gt; <\/pre>\n<p>You can reference the <a href=\"https:\/\/codex.wordpress.org\/File_Header\" target=\"_blank\" rel=\"noopener\">WordPress codex for File Header<\/a> for a full list of all the available File Headers that WordPress understands.<\/p>\n<h2>Viewing File Headers from WordPress admin dashboard<\/h2>\n<p>To view the WordPress File Headers, <a href=\"\/support\/edu\/wordpress\/logging-into-wordpress-dashboard\/\" target=\"_blank\" rel=\"noopener\">log in to WordPress<\/a>, then click on <strong>Plugins<\/strong> from the left-hand menu.<\/p>\n<p class=\"alert alert-danger\">Note that in order to see your plugin File Header infomation show up, you first need to make sure that you create a WordPress plugin script for WordPress to read.<\/p>\n<p><a href=\"\/support\/images\/stories\/wordpress-development\/plugins\/file_header\/wordpress-file-headers-in-dashboard-view.png\" rel=\"lightbox-0\"><img decoding=\"async\" alt=\"WordPress file headers viewed in dashboard\" class=\"std_ss\" src=\"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/wordpress-development\/plugins\/file_header\/wordpress-file-headers-in-dashboard-view.png\" style=\"max-width: 675px; max-height: 300px;\"><\/a><\/p>\n<div style=\"clear:both;\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>When creating a WordPress plugin, you use the File Header to store info about your plugin such as the plugin name and description. These file headers are necessary for WordPress to understand that the PHP script you create is a plugin it can use. Required File Headers for plugins For WordPress to understand your plugin,<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-plugin-file-header\/\"> Read More ><\/a><\/p>\n","protected":false},"author":57014,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4325,56],"tags":[],"class_list":["post-3175","post","type-post","status-publish","format-standard","hentry","category-wordpress-hosting","category-wordpress"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Wordpress plugin file header | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"The WordPress File Header describes a WordPress plugin or theme at the top of the plugin or theme file. This info then displays in the dashboard and in the WordPress plugin directory.\" \/>\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.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-plugin-file-header\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Wordpress plugin file header | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"The WordPress File Header describes a WordPress plugin or theme at the top of the plugin or theme file. This info then displays in the dashboard and in the WordPress plugin directory.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-plugin-file-header\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2014-07-04T04:00:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-17T02:58:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/wordpress-development\/plugins\/file_header\/wordpress-file-headers-in-dashboard-view.png\" \/>\n<meta name=\"author\" content=\"InMotion Hosting Contributor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"InMotion Hosting Contributor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-plugin-file-header\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-plugin-file-header\/\"},\"author\":{\"name\":\"InMotion Hosting Contributor\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644\"},\"headline\":\"WordPress plugin file header\",\"datePublished\":\"2014-07-04T04:00:01+00:00\",\"dateModified\":\"2021-08-17T02:58:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-plugin-file-header\/\"},\"wordCount\":147,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-plugin-file-header\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/wordpress-development\/plugins\/file_header\/wordpress-file-headers-in-dashboard-view.png\",\"articleSection\":[\"WordPress Hosting\",\"WordPress Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-plugin-file-header\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-plugin-file-header\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-plugin-file-header\/\",\"name\":\"Wordpress plugin file header | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-plugin-file-header\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-plugin-file-header\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/wordpress-development\/plugins\/file_header\/wordpress-file-headers-in-dashboard-view.png\",\"datePublished\":\"2014-07-04T04:00:01+00:00\",\"dateModified\":\"2021-08-17T02:58:33+00:00\",\"description\":\"The WordPress File Header describes a WordPress plugin or theme at the top of the plugin or theme file. This info then displays in the dashboard and in the WordPress plugin directory.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-plugin-file-header\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-plugin-file-header\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-plugin-file-header\/#primaryimage\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/wordpress-development\/plugins\/file_header\/wordpress-file-headers-in-dashboard-view.png\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/wordpress-development\/plugins\/file_header\/wordpress-file-headers-in-dashboard-view.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-plugin-file-header\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"WordPress plugin file header\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644\",\"name\":\"InMotion Hosting Contributor\",\"description\":\"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!\",\"sameAs\":[\"https:\/\/www.linkedin.com\/company\/inmotion-hosting\/\",\"https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting\"],\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/inmotion-hosting-contributor\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Wordpress plugin file header | InMotion Hosting","description":"The WordPress File Header describes a WordPress plugin or theme at the top of the plugin or theme file. This info then displays in the dashboard and in the WordPress plugin directory.","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.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-plugin-file-header\/","og_locale":"en_US","og_type":"article","og_title":"Wordpress plugin file header | InMotion Hosting","og_description":"The WordPress File Header describes a WordPress plugin or theme at the top of the plugin or theme file. This info then displays in the dashboard and in the WordPress plugin directory.","og_url":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-plugin-file-header\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2014-07-04T04:00:01+00:00","article_modified_time":"2021-08-17T02:58:33+00:00","og_image":[{"url":"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/wordpress-development\/plugins\/file_header\/wordpress-file-headers-in-dashboard-view.png","type":"","width":"","height":""}],"author":"InMotion Hosting Contributor","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"InMotion Hosting Contributor","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-plugin-file-header\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-plugin-file-header\/"},"author":{"name":"InMotion Hosting Contributor","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644"},"headline":"WordPress plugin file header","datePublished":"2014-07-04T04:00:01+00:00","dateModified":"2021-08-17T02:58:33+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-plugin-file-header\/"},"wordCount":147,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-plugin-file-header\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/wordpress-development\/plugins\/file_header\/wordpress-file-headers-in-dashboard-view.png","articleSection":["WordPress Hosting","WordPress Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-plugin-file-header\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-plugin-file-header\/","url":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-plugin-file-header\/","name":"Wordpress plugin file header | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-plugin-file-header\/#primaryimage"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-plugin-file-header\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/wordpress-development\/plugins\/file_header\/wordpress-file-headers-in-dashboard-view.png","datePublished":"2014-07-04T04:00:01+00:00","dateModified":"2021-08-17T02:58:33+00:00","description":"The WordPress File Header describes a WordPress plugin or theme at the top of the plugin or theme file. This info then displays in the dashboard and in the WordPress plugin directory.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-plugin-file-header\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-plugin-file-header\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-plugin-file-header\/#primaryimage","url":"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/wordpress-development\/plugins\/file_header\/wordpress-file-headers-in-dashboard-view.png","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/wordpress-development\/plugins\/file_header\/wordpress-file-headers-in-dashboard-view.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-plugin-file-header\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"WordPress plugin file header"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644","name":"InMotion Hosting Contributor","description":"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!","sameAs":["https:\/\/www.linkedin.com\/company\/inmotion-hosting\/","https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting"],"url":"https:\/\/www.inmotionhosting.com\/support\/author\/inmotion-hosting-contributor\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":null,"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/3175","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/57014"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=3175"}],"version-history":[{"count":2,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/3175\/revisions"}],"predecessor-version":[{"id":84224,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/3175\/revisions\/84224"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=3175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=3175"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=3175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}