{"id":86319,"date":"2018-06-13T14:00:34","date_gmt":"2018-06-13T14:00:34","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/gutenberg-ramp\/"},"modified":"2018-11-05T14:54:24","modified_gmt":"2018-11-05T14:54:24","slug":"gutenberg-ramp","status":"closed","type":"plugin","link":"https:\/\/mfe.wordpress.org\/plugins\/gutenberg-ramp\/","author":5279457,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.1.0","stable_tag":"1.1.0","tested":"5.0.25","requires":"4.9.8","requires_php":"5.5","requires_plugins":"","header_name":"Gutenberg Ramp","header_author":"Automattic, Inc.","header_description":"Allows theme authors to control the circumstances under which the Gutenberg editor loads. Options include \"load\" (1 loads all the time, 0 loads never) \"post_ids\" (load for particular posts) \"post_types\" (load for particular posts types.)","assets_banners_color":"463c2d","last_updated":"2018-11-05 14:54:24","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"","rating":4.7,"author_block_rating":0,"active_installs":900,"downloads":29807,"num_ratings":0,"support_threads":1,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"1.1.0":"<p>1.1.0 is a major upgrade preparing Gutenberg Ramp for WordPress 5.0 release. Upgrade prior to 5.0 is recommended to ensure seamless transition.<\/p>","1.0.0":"<ul>\n<li>initial release<\/li>\n<\/ul>"},"ratings":{"1":0,"2":0,"3":0,"4":"1","5":"2"},"assets_icons":{"icon-128x128.jpg":{"filename":"icon-128x128.jpg","revision":"1892220","resolution":"128x128","location":"assets"},"icon-256x256.jpg":{"filename":"icon-256x256.jpg","revision":"1892220","resolution":"256x256","location":"assets"}},"assets_banners":{"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":"1892220","resolution":"1544x500","location":"assets"},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":"1892220","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.1.0"],"block_files":[],"assets_screenshots":{"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":"1892220","resolution":"1","location":"assets"}},"screenshots":{"1":"Settings for Gutenberg Ramp via Settings -&gt; Writing"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[155767,148076,157951,157950,157949],"plugin_category":[],"plugin_contributors":[77494,78857,82649,97282],"plugin_business_model":[],"class_list":["post-86319","plugin","type-plugin","status-closed","hentry","plugin_tags-classic-editor","plugin_tags-gutenberg","plugin_tags-gutenberg-ramp","plugin_tags-legacy-editor","plugin_tags-ramp","plugin_contributors-automattic","plugin_contributors-enigmaweb","plugin_contributors-justnorris","plugin_contributors-mattoperry","plugin_committers-automattic","plugin_committers-enigmaweb","plugin_committers-mattoperry","plugin_support_reps-dartiss"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/gutenberg-ramp_463c2d.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/gutenberg-ramp\/assets\/screenshot-1.jpg?rev=1892220","caption":"Settings for Gutenberg Ramp via Settings -&gt; Writing"}],"raw_content":"<!--section=description-->\n<p>Activating Gutenberg Ramp plugin adds a settings screen where you can enable Gutenberg selectively (for specific post types). For even greater control, you can specify Gutenberg loading behavior in code. Ramp works with both the plugin version of Gutenberg, and the core version, providing a seamless transition.<\/p>\n\n<p>Visit Settings -&gt; Writing to enable Gutenberg by post type. <a href=\"https:\/\/wordpress.org\/plugins\/gutenberg-ramp\/#screenshots\">Screenshots here<\/a><\/p>\n\n<p>To enable Gutenberg for specific post IDs and for a more granular level of control, developers can use the <code>gutenberg_ramp_load_gutenberg()<\/code> function as outlined below.<\/p>\n\n<h3>For Developers<\/h3>\n\n<p>Loading behaviour is controlled by the <code>gutenberg_ramp_load_gutenberg()<\/code> function, to be added in your theme <code>functions.php<\/code>. Calling this function without its single optional parameter causes Gutenberg to load on all post-edit screens. An optional associative array of criteria can be passed. The possible keys and values are:<\/p>\n\n<ul>\n<li><code>load<\/code> (Int): <code>0|1<\/code>: never or always load Gutenberg<\/li>\n<li><code>post_ids<\/code> (Array of post_ids): loads Gutenberg for the specified post_ids<\/li>\n<li><code>post_types<\/code> (Array of post_types): loads Gutenberg for the specified post types.<\/li>\n<\/ul>\n\n<h3>Code Examples<\/h3>\n\n<p>Load Gutenberg for all posts:<\/p>\n\n<pre><code>if ( function_exists( 'gutenberg_ramp_load_gutenberg' ) ) {\n    gutenberg_ramp_load_gutenberg();\n}\n<\/code><\/pre>\n\n<p>Never load Gutenberg:<\/p>\n\n<pre><code>gutenberg_ramp_load_gutenberg( false );\n\n\/\/ Alternatively, you can use the load key to always disable Gutenberg:\ngutenberg_ramp_load_gutenberg( [ 'load' =&gt; 0 ] );\n<\/code><\/pre>\n\n<p>Load Gutenberg only for posts with ids 12, 13 and 122:<\/p>\n\n<pre><code>gutenberg_ramp_load_gutenberg( [ 'post_ids' =&gt; [ 12, 13, 122 ] ] );\n<\/code><\/pre>\n\n<p>Load Gutenberg for <code>post_id: 12<\/code> and all posts of type <code>test<\/code> and <code>scratch<\/code>:<\/p>\n\n<pre><code>gutenberg_ramp_load_gutenberg(\n    [\n        'post_types' =&gt; [ 'test', 'scratch' ],\n        'post_ids'   =&gt; [ 12 ],\n    ]\n);\n<\/code><\/pre>\n\n<h3>Contributions<\/h3>\n\n<p>Contributions are welcome via our <a href=\"https:\/\/github.com\/Automattic\/gutenberg-ramp\">GitHub repo.<\/a><\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install &amp; activate the plugin through the WordPress 'Plugins' dashboard.<\/li>\n<li>Visit Settings -&gt; Writing to enable Gutenberg for specific post types like Pages, Posts, and any custom post types.  <a href=\"https:\/\/wordpress.org\/plugins\/gutenberg-ramp\/#screenshots\">Screenshots here<\/a><\/li>\n<li>To enable Gutenberg for specific post IDs and for a more granular level of control, developers can use the <code>gutenberg_ramp_load_gutenberg()<\/code> function as <a href=\"https:\/\/wordpress.org\/plugins\/gutenberg-ramp\/\">outlined here.<\/a><\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Why is a post type disabled (greyed out) on my settings screen?<\/dt>\n<dd><p>If you're seeing something greyed out, it means the <code>gutenberg_ramp_load_gutenberg()<\/code> function is already in your theme functions.php. If you want to use the wp-admin UI, remove the conflicting function from your functions.php file.<\/p><\/dd>\n<dt>Some post types are not showing up on the settings screen<\/dt>\n<dd><p>Post types that are not compatible with Gutenberg will not show up. If you think you have found a false negative (posts in that post type DO work with Gutenberg, when Ramp plugin is deactivated) please report it as an issue on <a href=\"https:\/\/github.com\/Automattic\/gutenberg-ramp\">GitHub here.<\/a><\/p><\/dd>\n<dt>Can I contribute to this plugin?<\/dt>\n<dd><p>Absolutely! Please create issues and pull requests on <a href=\"https:\/\/github.com\/Automattic\/gutenberg-ramp\">GitHub here.<\/a><\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>prepares Gutenberg Ramp for WordPress 5.0 release<\/li>\n<li>deprecates support for Gutenberg Plugin versions older than 3.5<\/li>\n<li>no longer caches load decision in <code>gutenberg_ramp_load_critera<\/code> option<\/li>\n<li>removed  <code>gutenberg_ramp_option_name<\/code> filter<\/li>\n<li>adds unsupported post types notice<\/li>\n<li>adds support for multiple function calls to <code>gutenberg_ramp_load_gutenberg()<\/code><\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>initial release<\/li>\n<\/ul>","raw_excerpt":"Restores legacy editor or enables Gutenberg selectively by post types or post ID.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/mfe.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/86319","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mfe.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/mfe.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/mfe.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=86319"}],"author":[{"embeddable":true,"href":"https:\/\/mfe.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/automattic"}],"wp:attachment":[{"href":"https:\/\/mfe.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=86319"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/mfe.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=86319"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/mfe.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=86319"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/mfe.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=86319"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/mfe.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=86319"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/mfe.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=86319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}