Skip to content

Instantly share code, notes, and snippets.

@paulgibbs
Last active December 14, 2018 14:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulgibbs/6d6309e0ea586d955e0b7b5573d5a642 to your computer and use it in GitHub Desktop.
Save paulgibbs/6d6309e0ea586d955e0b7b5573d5a642 to your computer and use it in GitHub Desktop.
Disable Gutenberg
<?php
/**
* Plugin Name: Disable Gutenberg
*/
add_filter('use_block_editor_for_post', '__return_false');
@paulgibbs
Copy link
Author

I needed a way to turn off Gutenberg for a side project's CI runs, and all the easy-to-download plugins were needlessly complex ^

This can be installed via wp-cli

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment