class MainMain initiation class.
class final
- Full name
Kernowdev\Clanbite\Main
Constants
| Name | Value | Description |
|---|---|---|
VERSION | '1.6.5' | Current version. |
MAINTENANCE_VERSION | 1 | Maintenance upgrade counter (single step for 1.0.0 public release). |
Methods
__construct()Sets up our plugin._activate()Activate the plugin._deactivate()Deactivate the plugin. Uninstall routines should be in uninstall.php.check_requirements()Check if the plugin meets requirements before bootstrapping.early_hooks()Hooks run at 0.enqueue_admin_styles()Enqueue admin CSS.enqueue_block_editor_icon_styles()Block inserter icon sharpening (see assets/block-icons-editor.css).enqueue_interactivity_for_plugin_templates()Make the Interactivity API available to blocks rendered by a Clanbite plugin's own PHP template.filter_plugin_action_links()Prepend Settings and website links on the Plugins list screen.get_version()Returns the current version.hooks()Add hooks and filters. Priority needs to be < 10 for CPT_Core, < 5 for Taxonomy_Core, and 0 for Widgets because widgets_init runs at init priority 1.init()Init hooksinstance()Creates or returns an instance of this class.load_textdomain()Load translations early (plugins_loaded, priority 1).localize_visibility_container_block_editor()Pass role labels into the block editor for the visibility container token fields.maybe_run_maintenance()Check if any necessary maintenance tasks need to be run and execute them.meets_requirements()Check that all plugin requirements are met.register_block_categories()Register block editor categories (core Clanbite + per-extension groups).register_core_blocks()Register plugin blocks that are not tied to a single extension bundle.register_shared_styles()Register stylesheets shared by Clanbite and its companion plugins.requirements_not_met_notice()Adds a notice to the dashboard if the plugin requirements are not met.version_block_assets()Version the styles of every Clanbite block by its build time instead of the version in block.json.
Defined in clanbite.php
Changelog
| Version | Description |
|---|---|
| 1.6.5 | Updated. |
| 1.6.3 | Updated. |
| 1.6.2 | Updated. |
| 1.6.1 | Updated. |
| 1.6.0 | Updated. |
| 1.5.0 | Updated. |
| 1.4.0 | Updated. |
| 1.3.0 | Updated. |
| 1.2.0 | Updated. |
| 1.1.0 | Updated. |