{"id":327185,"date":"2026-06-18T16:58:43","date_gmt":"2026-06-18T16:58:43","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/4wp-advanced-code\/"},"modified":"2026-06-18T17:01:54","modified_gmt":"2026-06-18T17:01:54","slug":"4wp-advanced-code","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/4wp-advanced-code\/","author":17741300,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.1","stable_tag":"1.0.1","tested":"7.0","requires":"6.4","requires_php":"7.4","requires_plugins":null,"header_name":"4WP Advanced Code","header_author":"4wpdev","header_description":"Enhanced Code block for Gutenberg: syntax highlighting, copy and share controls, and optional SoftwareSourceCode JSON-LD.","assets_banners_color":"","last_updated":"2026-06-18 17:01:54","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/4wp.dev\/","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":0,"downloads":30,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.1":{"tag":"1.0.1","author":"4wpdev","date":"2026-06-18 17:01:54"}},"upgrade_notice":{"1.0.1":"<p>Review fixes: Highlight.js update and JSON-LD escaping.<\/p>","1.0.0":"<p>First public release.<\/p>"},"ratings":[],"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":{"forwp\/advanced-code":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":3,"name":"forwp\/advanced-code","title":"Advanced Code","category":"formatting","icon":"editor-code","description":"Enhanced code block with syntax highlighting, copy\/share functionality, and SEO optimization.","keywords":["code","syntax","highlighting","seo","developer"],"version":"1.0.1","textdomain":"4wp-advanced-code","attributes":{"content":{"type":"string","source":"text","selector":"code","default":""},"language":{"type":"string","default":"auto"},"theme":{"type":"string","default":""},"showCopy":{"type":"boolean","default":true},"showShare":{"type":"boolean","default":true},"note":{"type":"string","default":""},"advancedEnabled":{"type":"boolean","default":true},"seoEnabled":{"type":"boolean","default":true},"seoTitle":{"type":"string","default":""},"seoDescription":{"type":"string","default":""},"seoType":{"type":"string","default":"example"},"slug":{"type":"string","default":""}},"supports":{"html":false,"className":true,"customClassName":true,"anchor":true},"editorScript":"file:.\/build\/index.js","editorStyle":"file:.\/build\/index.css","style":"file:.\/assets\/frontend.css","render":"file:.\/includes\/render.php"}},"tagged_versions":["1.0.1"],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"Advanced Code block in the editor with sidebar controls.","2":"Frontend code block with copy and share actions.","3":"Settings screen \u2014 defaults for language, theme, and SEO."}},"plugin_section":[],"plugin_tags":[1214,2275,148076,2516,4609],"plugin_category":[],"plugin_contributors":[262731,262732],"plugin_business_model":[],"class_list":["post-327185","plugin","type-plugin","status-publish","hentry","plugin_tags-code","plugin_tags-developer","plugin_tags-gutenberg","plugin_tags-json-ld","plugin_tags-syntax-highlighting","plugin_contributors-4wpdev","plugin_contributors-anatolikkk","plugin_committers-4wpdev"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/4wp-advanced-code.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p><strong>4WP Advanced Code<\/strong> enhances <strong>core\/code<\/strong> blocks and provides a dedicated <strong>Advanced Code<\/strong> block with syntax highlighting, copy and share controls, optional notes, and SoftwareSourceCode JSON-LD for technical content.<\/p>\n\n<p>A plugin by <a href=\"https:\/\/4wp.dev\/\">4wp.dev<\/a>. <strong>4WP<\/strong> is our project brand; the letters \"WP\" appear only as part of that brand name, not as a reference to WordPress. This plugin is not affiliated with, endorsed, or sponsored by WordPress.<\/p>\n\n<p>Source code: <a href=\"https:\/\/github.com\/4wpdev\/4wp-advanced-code\">github.com\/4wpdev\/4wp-advanced-code<\/a><\/p>\n\n<h4>Key features<\/h4>\n\n<ul>\n<li><strong>Syntax highlighting<\/strong> \u2014 bundled Highlight.js (no CDN on the frontend)<\/li>\n<li><strong>core\/code wrapper<\/strong> \u2014 upgrade existing Code blocks without re-entering content<\/li>\n<li><strong>Advanced Code block<\/strong> \u2014 per-block language, theme, copy\/share, and SEO fields<\/li>\n<li><strong>JSON-LD<\/strong> \u2014 optional SoftwareSourceCode structured data<\/li>\n<li><strong>Settings<\/strong> \u2014 global defaults under Settings \u2192 4WP Advanced Code<\/li>\n<\/ul>\n\n<h4>Privacy<\/h4>\n\n<p>Copy and share actions run in the visitor browser. When share opens Twitter or LinkedIn, the visitor leaves your site to those third-party services. No personal data is sent to 4wp.dev.<\/p>\n\n<h3>Blocks<\/h3>\n\n<p>This plugin provides 1 block.<\/p>\n\n<ul>\n<li><strong>Advanced Code<\/strong> \u2014 syntax-highlighted code with copy, share, and SEO controls.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin to <code>\/wp-content\/plugins\/4wp-advanced-code\/<\/code> or install from the Plugins screen.<\/li>\n<li>Activate <strong>4WP Advanced Code<\/strong>.<\/li>\n<li>Open <strong>Settings \u2192 4WP Advanced Code<\/strong> to set defaults.<\/li>\n<li>Add a <strong>Code<\/strong> or <strong>Advanced Code<\/strong> block in the editor.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20this%20replace%20core%2Fcode%3F\"><h3>Does this replace core\/code?<\/h3><\/dt>\n<dd><p>No. Existing <strong>Code<\/strong> blocks keep working. When advanced features are enabled, the plugin wraps their output on the frontend.<\/p><\/dd>\n<dt id=\"is%20highlight.js%20loaded%20on%20every%20page%3F\"><h3>Is Highlight.js loaded on every page?<\/h3><\/dt>\n<dd><p>Only on singular posts\/pages that contain a Code or Advanced Code block.<\/p><\/dd>\n<dt id=\"can%20i%20disable%20json-ld%3F\"><h3>Can I disable JSON-LD?<\/h3><\/dt>\n<dd><p>Yes \u2014 globally in Settings or per block in the block sidebar.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Review T1: upgrade bundled Highlight.js to 11.11.1; safe JSON-LD output via wp_json_encode (no script-breakout flags).<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>First submission: core\/code wrapper, Advanced Code block, bundled Highlight.js, JSON-LD, settings.<\/li>\n<\/ul>","raw_excerpt":"Enhanced Code block for Gutenberg with syntax highlighting, copy and share controls, and optional SoftwareSourceCode JSON-LD.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/327185","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=327185"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/4wpdev"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=327185"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=327185"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=327185"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=327185"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=327185"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=327185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}