diff --git a/external-permalinks-redux.php b/external-permalinks-redux.php index b3a194da1a823c67b877b93f457cd3e7a11c61b1..ace9c2b954273e4eeafc26b0ac1253e0c82c382d 100644 --- a/external-permalinks-redux.php +++ b/external-permalinks-redux.php @@ -24,6 +24,9 @@ * @package External_Permalinks_Redux */ +// Include block-editor class. +require_once __DIR__ . '/inc/class-external-permalinks-redux-block-editor.php'; + /** * Class external_permalinks_redux. */ @@ -57,6 +60,13 @@ class external_permalinks_redux { */ public $status_codes; + /** + * Instance of the block-editor integration class. + * + * @var External_Permalinks_Redux_Block_Editor + */ + public $block_editor; + /** * Instantiate class as a singleton. * @@ -82,6 +92,8 @@ class external_permalinks_redux { add_filter( 'post_type_link', array( $this, 'filter_post_permalink' ), 1, 2 ); add_filter( 'page_link', array( $this, 'filter_page_link' ), 1, 2 ); add_action( 'wp', array( $this, 'action_wp' ) ); + + $this->block_editor = new External_Permalinks_Redux_Block_Editor(); } /** diff --git a/inc/class-external-permalinks-redux-block-editor.php b/inc/class-external-permalinks-redux-block-editor.php new file mode 100644 index 0000000000000000000000000000000000000000..1406cc5dc304be3955a444467a073c5c3e33978c --- /dev/null +++ b/inc/class-external-permalinks-redux-block-editor.php @@ -0,0 +1,11 @@ +<?php +/** + * Block editor support. + * + * @package External_Permalinks_Redux + */ + +/** + * Class Block_Editor. + */ +class External_Permalinks_Redux_Block_Editor {}