Init
Contains logic for the Navigation
Description Description
Source Source
File: packages/woocommerce-admin/src/Features/Navigation/Init.php
Methods Methods
- __construct — Hook into WooCommerce.
- add_feature_toggle — Add the feature toggle to the features settings.
- is_nav_compatible — Determine if sufficient versions are present to support Navigation feature
- maybe_enqueue_opt_out_scripts — Enqueue the opt out scripts.
- preload_options — Preload options to prime state of the application.
- reload_page_on_toggle — Reloads the page when the option is toggled to make sure all nav features are loaded.