Automattic\WooCommerce\Admin\Features\ProductBlockEditor
RedirectionController::__construct()
Set up the hooks used for redirection.
Метод класса: RedirectionController{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$RedirectionController = new RedirectionController(); $RedirectionController->__construct();
Код RedirectionController::__construct() RedirectionController:: construct WC 9.7.1
public function __construct() { if ( \Automattic\WooCommerce\Utilities\FeaturesUtil::feature_is_enabled( 'product_block_editor' ) ) { add_action( 'current_screen', array( $this, 'maybe_redirect_to_new_editor' ), 30, 0 ); add_action( 'current_screen', array( $this, 'redirect_non_supported_product_types' ), 30, 0 ); } else { add_action( 'current_screen', array( $this, 'maybe_redirect_to_old_editor' ), 30, 0 ); } }