NOVELIST_DISABLE_REWRITE

⌘K
  1. Home
  2. Developers
  3. Constants
  4. NOVELIST_DISABLE_REWRITE

NOVELIST_DISABLE_REWRITE

By default, the ‘book’ post type has rewrite turned on. If you wish to disable the rewrite functionality, you can do that by defining this constant.

Place this code in your theme’s functions.php file or inside of a new plugin:

define( 'NOVELIST_DISABLE_REWRITE', true );

Go to Settings > Permalinks and re-save your permalinks to complete the change.

Was this article helpful to you? No Yes

How can we help?