{"id":116222,"date":"2020-01-17T23:31:37","date_gmt":"2020-01-17T23:31:37","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/codepen-embed-block\/"},"modified":"2025-07-01T15:31:15","modified_gmt":"2025-07-01T15:31:15","slug":"codepen-embed-block","status":"publish","type":"plugin","link":"https:\/\/lmo.wordpress.org\/plugins\/codepen-embed-block\/","author":127030,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.2.0","stable_tag":"trunk","tested":"6.7.5","requires":"5.1","requires_php":"7.2","requires_plugins":null,"header_name":"CodePen Embed Block","header_author":"Chris Coyier","header_description":"Embeds Pens","assets_banners_color":"","last_updated":"2025-07-01 15:31:15","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"","rating":5,"author_block_rating":0,"active_installs":700,"downloads":13259,"num_ratings":2,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":2},"assets_icons":{"icon-256x256.jpg":{"filename":"icon-256x256.jpg","revision":2471014,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":[],"assets_blueprints":{},"all_blocks":{"cp\/codepen-gutenberg-embed-block":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":3,"name":"cp\/codepen-gutenberg-embed-block","version":"1.2.0","title":"CodePen Embed","category":"embed","icon":"embed-generic","description":"Embeds CodePen pens","example":{"attributes":{"penURL":"https:\/\/codepen.io\/example\/pen\/abc123"}},"supports":{"html":true},"attributes":{"content":{"type":"string","default":""},"penURL":{"type":"string","default":""},"penID":{"type":"string","default":""},"penType":{"type":"string","default":"result"},"penHeight":{"type":"integer","default":450},"penTheme":{"type":"string","default":"1"},"clickToLoad":{"type":"boolean","default":false},"editable":{"type":"boolean","default":false}},"textdomain":"codepen-embed-block","editorScript":"file:.\/index.js","editorStyle":"file:.\/index.css","style":"file:.\/style-index.css"}},"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2229482,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2229482,"resolution":"2","location":"assets","locale":""}},"screenshots":{"1":"Adding a CodePen Embed block.","2":"The block with all the options."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1214,16302,230,148076],"plugin_category":[56],"plugin_contributors":[81130],"plugin_business_model":[],"class_list":["post-116222","plugin","type-plugin","status-publish","hentry","plugin_tags-code","plugin_tags-codepen","plugin_tags-embed","plugin_tags-gutenberg","plugin_category-social-and-sharing","plugin_contributors-andrewtaylor-1","plugin_committers-chriscoyier"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/codepen-embed-block\/assets\/icon-256x256.jpg?rev=2471014","icon_2x":"https:\/\/ps.w.org\/codepen-embed-block\/assets\/icon-256x256.jpg?rev=2471014","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/codepen-embed-block\/assets\/screenshot-1.png?rev=2229482","caption":"Adding a CodePen Embed block."},{"src":"https:\/\/ps.w.org\/codepen-embed-block\/assets\/screenshot-2.png?rev=2229482","caption":"The block with all the options."}],"raw_content":"<!--section=description-->\n<p><a href=\"https:\/\/codepen.io\">CodePen<\/a> is an online code editor for front-end development. You build things (we call them Pens) with HTML, CSS, and JavaScript, and the languages and libraries that go along with those. Any Pen can be embedded on another site, making them useful for blog posts, documentation, forums, etc.<\/p>\n\n<p>This block makes it easy to embed them. While oEmbed (just paste in a Pen URL!) also works for CodePen embeds in the block editor, this plugin allows for much more control, like setting the the height, theme, and default tabs.<\/p>\n\n<!--section=installation-->\n<p>Install from the WordPress Plugin Directory.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt id='why%20is%20this%20useful%3F'><h3>Why is this useful?<\/h3><\/dt>\n<dd><p>It's helpful for embedding Pens you build (or others have built) on CodePen on your own WordPress site.<\/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>1.0.2<\/h4>\n\n<ul>\n<li>Added editable option<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>Tested up to WordPress 6.3.1<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Added new setting for default theme ID<\/li>\n<\/ul>\n\n<h4>1.2.0<\/h4>\n\n<ul>\n<li>Rewritten using @wordpress\/blocks builder<\/li>\n<li>Update RegEx to support 2.0 editor URLs<\/li>\n<\/ul>","raw_excerpt":"An (official) block for CodePen Embeds.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/116222","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=116222"}],"author":[{"embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/chriscoyier"}],"wp:attachment":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=116222"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=116222"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=116222"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=116222"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=116222"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=116222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}