Habari\Pluggable::load PHP Method

load() public method

Called when a pluggable is loaded to register its actions and filters.
public load ( )
    public function load()
    {
        self::load_hooks($this);
        // look for help with this
        if (method_exists($this, 'help')) {
            Plugins::register(array($this, '_help_plugin_config'), 'filter', 'plugin_config:' . $this->plugin_id(), 8);
            Plugins::register(array($this, '_help_plugin_ui'), 'action', 'plugin_ui:' . $this->plugin_id(), 8);
        }
        // look for a basic configure method
        if (method_exists($this, 'configure')) {
            Plugins::register(array($this, '_configure_plugin_config'), 'filter', 'plugin_config:' . $this->plugin_id(), 8);
            Plugins::register(array($this, '_configure_plugin_ui'), 'action', 'plugin_ui:' . $this->plugin_id(), 8);
        }
    }