{"id":97728,"date":"2019-02-07T08:57:42","date_gmt":"2019-02-07T08:57:42","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/gist-api-code-insert\/"},"modified":"2025-10-17T18:02:31","modified_gmt":"2025-10-17T18:02:31","slug":"ap-gist-api-code-insert","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/ap-gist-api-code-insert\/","author":13679498,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.1.5","stable_tag":"trunk","tested":"6.3.8","requires":"4.0.0","requires_php":"7.2","requires_plugins":null,"header_name":"Social Patch","header_author":"Alex Pinkevych","header_description":"Inserts Github Gist code directly in to your posts via shortcode without using js embed script","assets_banners_color":"","last_updated":"2025-10-17 18:02:31","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.donationalerts.com\/r\/pinchoalex","header_plugin_uri":"https:\/\/spatch.store","header_author_uri":"https:\/\/spatch.store","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1676,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"pinchoalex","date":"2019-02-11 10:37:06"},"1.0.1":{"tag":"1.0.1","author":"pinchoalex","date":"2019-02-11 10:41:49"},"1.0.5":{"tag":"1.0.5","author":"pinchoalex","date":"2025-10-15 12:12:22"},"1.1.0":{"tag":"1.1.0","author":"pinchoalex","date":"2023-09-12 17:08:36"},"1.1.5":{"tag":"1.1.5","author":"pinchoalex","date":"2025-10-15 12:14:39"},"1.1.6":{"tag":"1.1.6","author":"pinchoalex","date":"2025-10-17 18:02:31"},"1.1.7":{"tag":"1.1.7","author":"pinchoalex","date":"2025-10-17 18:04:28"}},"upgrade_notice":{"1.0":"<p>Initial plugin release.<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3380290,"resolution":"128x128","location":"assets","locale":""}},"assets_banners":[],"assets_blueprints":{},"all_blocks":{"create-block\/sp-youtube-channel":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":2,"name":"create-block\/sp-youtube-channel","version":"0.1.0","title":"SP Youtube channel videos","category":"social-patch","description":"The YouTube SocialPatch block is a simple and elegant way to showcase your YouTube channel videos on your website. ","supports":{"html":true},"textdomain":"sp-youtube-channel","editorScript":"file:.\/index.js","editorStyle":"file:.\/index.css","style":"file:.\/style-index.css","viewScript":["file:.\/public.js","sp-youtube-channel-js"],"attributes":{"channel":{"type":"string","default":"","label":"Channel url"},"channelData":{"type":"object","default":[]},"showTitle":{"type":"boolean","default":true},"showDuration":{"type":"boolean","default":true},"showViewCount":{"type":"boolean","default":true},"showLoadMore":{"type":"boolean","default":false},"maxResults":{"type":"number","default":10,"min":1,"max":50},"orderBy":{"type":"string","default":"date","label":"Order by","options":[{"label":"Date","value":"date"},{"label":"Rating","value":"rating"},{"label":"Title","value":"title"},{"label":"Views count","value":"viewCount"}]},"width":{"type":"number","default":320,"min":1,"max":1024},"height":{"type":"number","default":180,"min":1,"max":1024},"thumb":{"type":"string","default":"high","label":"Thumbnail quality","options":[{"label":"Default","value":"default"},{"label":"SD","value":"standard"},{"label":"MQ","value":"medium"},{"label":"HQ","value":"high"},{"label":"Max","value":"maxres"}]},"videoDuration":{"type":"string","default":"any","label":"Video duration","options":[{"label":"Any","value":"any"},{"label":"Long","value":"long"},{"label":"Medium","value":"medium"},{"label":"Short","value":"short"}]}}}},"tagged_versions":["1.0.0","1.0.1","1.0.5","1.1.0","1.1.5","1.1.6","1.1.7"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3380290,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3380290,"resolution":"2","location":"assets","locale":""}},"screenshots":{"1":"Plugin`s shortcode button in WP classic editor","2":"Highlighted code example from gist api via shortcode"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[5701,7823,1673],"plugin_category":[],"plugin_contributors":[167700],"plugin_business_model":[],"class_list":["post-97728","plugin","type-plugin","status-publish","hentry","plugin_tags-code-highlight","plugin_tags-gist","plugin_tags-github","plugin_contributors-pinchoalex","plugin_committers-pinchoalex"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/ap-gist-api-code-insert\/assets\/icon-128x128.png?rev=3380290","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/ap-gist-api-code-insert\/assets\/screenshot-1.png?rev=3380290","caption":"Plugin`s shortcode button in WP classic editor"},{"src":"https:\/\/ps.w.org\/ap-gist-api-code-insert\/assets\/screenshot-2.png?rev=3380290","caption":"Highlighted code example from gist api via shortcode"}],"raw_content":"<!--section=description-->\n<p>Unlike the standard embedding method that use script like this<\/p>\n\n<pre><code>&lt;script src=\"https:\/\/gist.github.com\/...\"&gt;&lt;\/script&gt;\n<\/code><\/pre>\n\n<p>to embed gist code, Gist API Code insert plugin inserts code directly in to your posts using simple shortcode and highlights it with prism code highlighter.<\/p>\n\n<p><strong>Examples<\/strong><\/p>\n\n<p>Add all files from a gist:<\/p>\n\n<pre><code>[apCI id=\"123456789\"]\n<\/code><\/pre>\n\n<p>Add single file from a gist:<\/p>\n\n<pre><code>[apCI id=\"123456789\" file=\"filename.php\"]\n<\/code><\/pre>\n\n<p>Add single file from a gist with raw file link:<\/p>\n\n<pre><code>[apCI id=\"123456789\" file=\"filename.php\" raw=\"yes\" ]\n<\/code><\/pre>\n\n<!--section=installation-->\n<ol>\n<li>Upload plugin files to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='where%20i%20can%20find%20shortcode%20button%3F'><h3>Where I can find shortcode button?<\/h3><\/dt>\n<dd><ul>\n<li>You can find shortcode button in your classic code editor`s tool bar.<\/li>\n<\/ul><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial plugin release.<\/li>\n<\/ul>","raw_excerpt":"Inserts Github Gist code directly in to your posts via shortcode without using js embed script","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/97728","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=97728"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/pinchoalex"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=97728"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=97728"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=97728"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=97728"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=97728"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=97728"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}