{"id":54952,"date":"2017-03-11T09:44:43","date_gmt":"2017-03-11T09:44:43","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/add-custom-codes\/"},"modified":"2026-03-17T07:52:35","modified_gmt":"2026-03-17T07:52:35","slug":"add-custom-codes","status":"publish","type":"plugin","link":"https:\/\/srd.wordpress.org\/plugins\/add-custom-codes\/","author":13749722,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"5.0","stable_tag":"5.0","tested":"6.9.4","requires":"6.6.2","requires_php":"7.4","requires_plugins":null,"header_name":"Add Custom Codes - Insert Header, Footer, Custom Code Snippets","header_author":"Saifudheen Mak","header_description":"","assets_banners_color":"ecf3f8","last_updated":"2026-03-17 07:52:35","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/donate.stripe.com\/9AQdRz5xJ87c9i0bIS","header_plugin_uri":"","header_author_uri":"https:\/\/maktalseo.com","rating":5,"author_block_rating":0,"active_installs":1000,"downloads":17800,"num_ratings":6,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0":{"tag":"1.0","author":"SaifuMak","date":"2017-03-17 06:06:50"},"2.0":{"tag":"2.0","author":"SaifuMak","date":"2018-10-26 06:59:10"},"3.0":{"tag":"3.0","author":"SaifuMak","date":"2020-05-19 19:10:18"},"3.5":{"tag":"3.5","author":"SaifuMak","date":"2020-05-20 12:41:05"},"4.0":{"tag":"4.0","author":"SaifuMak","date":"2022-01-30 13:48:15"},"4.1":{"tag":"4.1","author":"SaifuMak","date":"2022-01-31 14:38:49"},"4.2":{"tag":"4.2","author":"SaifuMak","date":"2022-05-14 16:46:42"},"4.3":{"tag":"4.3","author":"SaifuMak","date":"2022-08-30 03:00:40"},"4.4":{"tag":"4.4","author":"SaifuMak","date":"2023-11-05 14:59:15"},"4.5":{"tag":"4.5","author":"SaifuMak","date":"2023-11-05 15:06:14"},"4.6":{"tag":"4.6","author":"SaifuMak","date":"2024-01-09 17:33:10"},"4.7":{"tag":"4.7","author":"SaifuMak","date":"2025-03-14 10:41:49"},"4.71":{"tag":"4.71","author":"SaifuMak","date":"2025-03-21 09:56:50"},"4.80":{"tag":"4.80","author":"SaifuMak","date":"2025-04-29 06:08:59"},"5.0":{"tag":"5.0","author":"SaifuMak","date":"2026-03-17 07:52:35"}},"upgrade_notice":{"1.0":"<p>Intial Release<\/p>","2.0":"<p>Tested to work on latest wordpress version<\/p>","3.0":"<p>This update make sure that it works well with latest Wordpress version and also we have also replaced the editor with Wordpress built-in code editor.<\/p>","4.0":"<p>Bug fixes and major improvements. You can now add custom Header and Footer Codes to individual posts, pages, woocommerce products and even custom post types.<\/p>","4.1":"<p>Tweaks and improvements for the Version 4.0 released earlier.<\/p>","4.2":"<p>Fixed a reported bug: users were not able to select all pages or posts on Wordpress admin screen.<\/p>","4.3":"<p>Bug fixes and improvements. Tested to work with Wordpress 6.0<\/p>","4.4":"<p>Bug fixes and improvements.<\/p>","4.5":"<p>Tested to work with latest Wordpress<\/p>","4.6":"<p>Tested to work with latest Wordpress<\/p>","4.7":"<p>Bug fixes &amp; improvements. Option to add Custom Codes to taxonomy pages.<\/p>","4.71":"<p>Fixed a bug with css inputs<\/p>","4.8":"<p>Introduces a new feature called &quot;Snippets&quot;. Backup your site before doing the update.<\/p>","5.0":"<p>Fixed security and vulnerability issues. Backup your website before upgrading.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":6},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3283753,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3283753,"resolution":"256x256","location":"assets","locale":""},"icon.svg":{"filename":"icon.svg","revision":3283753,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":3283753,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":3283753,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","2.0","3.0","3.5","4.0","4.1","4.2","4.3","4.4","4.5","4.6","4.7","4.71","4.80","5.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3283753,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3283753,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3283753,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3283753,"resolution":"4","location":"assets","locale":""},"screenshot-5.png":{"filename":"screenshot-5.png","revision":3283753,"resolution":"5","location":"assets","locale":""},"screenshot-6.png":{"filename":"screenshot-6.png","revision":3283753,"resolution":"6","location":"assets","locale":""},"screenshot-7.png":{"filename":"screenshot-7.png","revision":3283753,"resolution":"7","location":"assets","locale":""},"screenshot-8.png":{"filename":"screenshot-8.png","revision":3283753,"resolution":"8","location":"assets","locale":""},"screenshot-9.png":{"filename":"screenshot-9.png","revision":3283753,"resolution":"9","location":"assets","locale":""}},"screenshots":{"1":"Global Custom CSS, Header Codes, Footer Codes","2":"PHP functions","3":"HTML Snippets with auto-generated Shortcode","4":"Javascript snippets","5":"CSS Snippets","6":"Dark Mode Editor","7":"Snippets listing page","8":"Snippet auto-deactivation feature","9":"Header and Footer codes for Pages, Posts, Taxonomies etc."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[142279,2001,133074,133073,241540],"plugin_category":[59],"plugin_contributors":[133075],"plugin_business_model":[],"class_list":["post-54952","plugin","type-plugin","status-publish","hentry","plugin_tags-custom-codes","plugin_tags-custom-css","plugin_tags-footer-codes","plugin_tags-header-codes","plugin_tags-php-snippets","plugin_category-utilities-and-tools","plugin_contributors-saifumak","plugin_committers-saifumak"],"banners":{"banner":"https:\/\/ps.w.org\/add-custom-codes\/assets\/banner-772x250.jpg?rev=3283753","banner_2x":"https:\/\/ps.w.org\/add-custom-codes\/assets\/banner-1544x500.jpg?rev=3283753","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/add-custom-codes\/assets\/icon.svg?rev=3283753","icon":"https:\/\/ps.w.org\/add-custom-codes\/assets\/icon.svg?rev=3283753","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/add-custom-codes\/assets\/screenshot-1.png?rev=3283753","caption":"Global Custom CSS, Header Codes, Footer Codes"},{"src":"https:\/\/ps.w.org\/add-custom-codes\/assets\/screenshot-2.png?rev=3283753","caption":"PHP functions"},{"src":"https:\/\/ps.w.org\/add-custom-codes\/assets\/screenshot-3.png?rev=3283753","caption":"HTML Snippets with auto-generated Shortcode"},{"src":"https:\/\/ps.w.org\/add-custom-codes\/assets\/screenshot-4.png?rev=3283753","caption":"Javascript snippets"},{"src":"https:\/\/ps.w.org\/add-custom-codes\/assets\/screenshot-5.png?rev=3283753","caption":"CSS Snippets"},{"src":"https:\/\/ps.w.org\/add-custom-codes\/assets\/screenshot-6.png?rev=3283753","caption":"Dark Mode Editor"},{"src":"https:\/\/ps.w.org\/add-custom-codes\/assets\/screenshot-7.png?rev=3283753","caption":"Snippets listing page"},{"src":"https:\/\/ps.w.org\/add-custom-codes\/assets\/screenshot-8.png?rev=3283753","caption":"Snippet auto-deactivation feature"},{"src":"https:\/\/ps.w.org\/add-custom-codes\/assets\/screenshot-9.png?rev=3283753","caption":"Header and Footer codes for Pages, Posts, Taxonomies etc."}],"raw_content":"<!--section=description-->\n<p>Add custom codes to your wordpress website. You can add custom PHP Functions, HTML, custom CSS, Javascript, Google Analytics, Search Console verification tags or other code snippets to your site.<\/p>\n\n<p><strong>Features<\/strong><\/p>\n\n<ul>\n<li>100% free wordpress plugin, no paid upgrades needed!<\/li>\n<li>Add PHP Snippets, Custom CSS, Javascript, Google Analytics, Facebook Scripts, Meta Verification Codes, Search console verification and other codes to your wordpress website easily.<\/li>\n<li>Generate Shortcodes for HTML Snippets and use it anywhere on the site!<\/li>\n<li>Syntax highlighter enabled with Light and Dark Mode Editors<\/li>\n<li>Classify snippets using tags<\/li>\n<li>Add Notes to Snippets<\/li>\n<li>Activate\/Inactivate snippets with a single click<\/li>\n<li>Auto-deactivate feature for PHP snippets that causes errors.<\/li>\n<li>Add Custome Codes globally or on individual posts, pages, products and even on custom post types.<\/li>\n<li>Option to select where to put snippets: before <em>&lt;\/head&gt;<\/em> or before <em>&lt;\/body&gt;<\/em> etc.<\/li>\n<li>Import\/Export Snippets to use on other sites.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Install the plugin through <code>Plugins -&gt; Add New<\/code> or Upload the plugin files to the <code>\/wp-content\/plugins\/add-custom-codes<\/code> directory<\/li>\n<li>Activate 'Add Custom Codes' plugin through the 'Plugins' page in WordPress<\/li>\n<li>Go to 'Dashboard -&gt; Add Custom Codes' to start using<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"plugin%20is%20not%20working%20for%20me.%20why%3F\"><h3>Plugin is not working for me. Why?<\/h3><\/dt>\n<dd><p>Make sure that your theme has 'wp_head()' call in header.php file and 'wp_footer()' call in footer.php file. Also make sure that you have added the right codes in plugin settings. Also Make sure to clear cache after updating codes in plugin settings.<\/p><\/dd>\n<dt id=\"is%20this%20plugin%20safe%20from%20hackers%3F\"><h3>Is this plugin safe from hackers?<\/h3><\/dt>\n<dd><p>The plugin is tested well and is safe to use on your website.<\/p><\/dd>\n<dt id=\"does%20the%20plugin%20take%20too%20long%20to%20load%3F\"><h3>Does the plugin take too long to load?<\/h3><\/dt>\n<dd><p>This is a light-weight plugin which do not affect website performance. But if you feel so, please check if you are loading scripts on header section. It is always better to load most scripts in footer section of a website so that the page content can load easily.<\/p><\/dd>\n<dt id=\"do%20you%20provide%20plugin%20support%3F\"><h3>Do you provide plugin support?<\/h3><\/dt>\n<dd><p>Yes, I am happy to provide support for free of cost.<\/p><\/dd>\n<dt id=\"plugin%20layout%20looks%20broken%20after%20update.%20how%20do%20i%20fix%3F\"><h3>Plugin layout looks broken after update. How do I fix?<\/h3><\/dt>\n<dd><p>Please clear your wordpress cache if you are using a caching plugin or service. Also try clearing browser cache.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial Release<\/li>\n<\/ul>\n\n<h4>2.0<\/h4>\n\n<ul>\n<li>Tested to work on latest Wordpress version<\/li>\n<\/ul>\n\n<h4>3.0<\/h4>\n\n<ul>\n<li>Tested to work on latest Wordpress version<\/li>\n<li>Replaced text editor.<\/li>\n<\/ul>\n\n<h4>4.0<\/h4>\n\n<ul>\n<li>Tested to work on latest Wordpress version<\/li>\n<li>Bug fixes and improvements.<\/li>\n<li>Added support for individual posts, pages, woocommerce products and even custom post types.<\/li>\n<li>Option to put CSS in header or footer of website.<\/li>\n<\/ul>\n\n<h4>4.1<\/h4>\n\n<ul>\n<li>Tweaks and improvements for the Version 4.0 released earlier.<\/li>\n<\/ul>\n\n<h4>4.2<\/h4>\n\n<ul>\n<li>Fixed a reported bug: users were not able to select all pages or posts on Wordpress admin screen.<\/li>\n<\/ul>\n\n<h4>4.3<\/h4>\n\n<ul>\n<li>Bugfixes and improvements<\/li>\n<li>Tested to work with Wordpress 6.0<\/li>\n<\/ul>\n\n<h4>4.4<\/h4>\n\n<ul>\n<li>Bugfixes and improvements<\/li>\n<\/ul>\n\n<h4>4.5<\/h4>\n\n<ul>\n<li>Tested to work with latest Wordpress<\/li>\n<\/ul>\n\n<h4>4.6<\/h4>\n\n<ul>\n<li>Tested to work with latest Wordpress<\/li>\n<\/ul>\n\n<h4>4.7<\/h4>\n\n<ul>\n<li>Bugfixes and improvements<\/li>\n<li>Tested to work with latest Wordpress<\/li>\n<li>Option to Add custom codes to taxonomy pages<\/li>\n<\/ul>\n\n<h4>4.71<\/h4>\n\n<ul>\n<li>Fixed a bug with css inputs<\/li>\n<\/ul>\n\n<h4>4.8<\/h4>\n\n<ul>\n<li>Major update with a fantastic feature: Snippets<\/li>\n<li>Add PHP Functions, HTML, CSS, Javascript as snippets<\/li>\n<li>Tags and Notes for Snippets<\/li>\n<li>Light Mode or Dark Mode editor<\/li>\n<li>Import\/Export Snippets<\/li>\n<\/ul>\n\n<h4>5.0<\/h4>\n\n<ul>\n<li>Major update with security and vulnerability issues fixed<\/li>\n<li>Added guide text to snippets for beginners to easily understand the plugin.<\/li>\n<\/ul>","raw_excerpt":"A completely free plugin to add Custom PHP functions, HTML, CSS, Javascript, any other custom codes to your wordpress website.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/54952","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=54952"}],"author":[{"embeddable":true,"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/saifumak"}],"wp:attachment":[{"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=54952"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=54952"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=54952"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=54952"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=54952"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=54952"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}