LP__Loader
The LP__Loader class plays a role in registering and managing actions and filters for the Launchpad plugin. It is responsible for organizing and executing the various hooks (actions and filters) that are used throughout the plugin. These hooks allow developers to extend and customize the functionality of the plugin by attaching their own custom functions to specific points in the plugin’s execution flow.
Namespace
Launchpad
Source
File: \admin\class-lp-loader.php
Usage
This class is used by plugin developers to register actions and filters for the Launchpad plugin. By doing so, developers can define custom behaviors and modifications to the plugin’s functionality at specific execution points.
Methods
| Method | Description |
|---|---|
| __construct() | This method is the class constructor and initializes the collections used to store registered actions and filters. |
| add_action($hook, $component, $callback, $priority = 10, $accepted_args = 1) | This method is used to add a new action to the collection of actions to be registered with WordPress. |
| add_filter($hook, $component, $callback, $priority = 10, $accepted_args = 1) | This method is used to add a new filter to the collection of filters to be registered with WordPress. |
| run() | This method is responsible for registering both actions and filters with WordPress |