• I’m using the following code to enable the Gutenberg editor on my event pages:

    
    <pre><code><?php 
    function filter_events_options( $options ) {
      $options['supports'][] = 'editor';
      return $options;
    }
    
    function filter_events_cpt($args) {
      $args['show_in_rest'] = true;
      return $args;
    }
    
    add_filter( 'eventorganiser_options', 'filter_events_options' );
    add_filter( 'eventorganiser_event_properties', 'filter_events_cpt' );
    <code></code>

    Can you think of any potential downsides to enabling the new editor?

    • This topic was modified 3 years, 5 months ago by Dalton Rooney.
  • The topic ‘Adding Gutenberg support’ is closed to new replies.