Skip to content
Snippets Groups Projects
Commit 11bf59dd authored by Erick Hitter's avatar Erick Hitter
Browse files

Scaffold class for block-editor integration

parent 387a2b18
No related branches found
No related tags found
1 merge request!14Add native block-editor support
Pipeline #4801 failed with stages
in 2 minutes and 3 seconds
...@@ -24,6 +24,9 @@ ...@@ -24,6 +24,9 @@
* @package External_Permalinks_Redux * @package External_Permalinks_Redux
*/ */
// Include block-editor class.
require_once __DIR__ . '/inc/class-external-permalinks-redux-block-editor.php';
/** /**
* Class external_permalinks_redux. * Class external_permalinks_redux.
*/ */
...@@ -57,6 +60,13 @@ class external_permalinks_redux { ...@@ -57,6 +60,13 @@ class external_permalinks_redux {
*/ */
public $status_codes; public $status_codes;
/**
* Instance of the block-editor integration class.
*
* @var External_Permalinks_Redux_Block_Editor
*/
public $block_editor;
/** /**
* Instantiate class as a singleton. * Instantiate class as a singleton.
* *
...@@ -82,6 +92,8 @@ class external_permalinks_redux { ...@@ -82,6 +92,8 @@ class external_permalinks_redux {
add_filter( 'post_type_link', array( $this, 'filter_post_permalink' ), 1, 2 ); add_filter( 'post_type_link', array( $this, 'filter_post_permalink' ), 1, 2 );
add_filter( 'page_link', array( $this, 'filter_page_link' ), 1, 2 ); add_filter( 'page_link', array( $this, 'filter_page_link' ), 1, 2 );
add_action( 'wp', array( $this, 'action_wp' ) ); add_action( 'wp', array( $this, 'action_wp' ) );
$this->block_editor = new External_Permalinks_Redux_Block_Editor();
} }
/** /**
......
<?php
/**
* Block editor support.
*
* @package External_Permalinks_Redux
*/
/**
* Class Block_Editor.
*/
class External_Permalinks_Redux_Block_Editor {}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment