Skip to content

System Actions ​

2 action hooks on this page, across 3 call sites.

HookFiresCall Sites
fluent_event/loadedOn plugins_loaded, once the FluentEvent application has booted.1
fluent_event/update_verification_failedWhen a downloaded plugin update fails its checksum check and is not installed.2

fluent_event/loaded ​

  • Type: action
  • Call sites: 1
  • When it fires: On plugins_loaded, once the FluentEvent application has booted.

The safe place to start an add-on: the models, services and facades are loaded.

Parameters ​

#NameTypeDescription
1$appFluentEvent\Framework\Foundation\ApplicationThe FluentEvent application container.

Call Sites ​

SourceContextArguments
fluent-event/boot/app.php:39—$app

Example ​

php
add_action('fluent_event/loaded', function ($app) {
    // FluentEvent is ready. Register your hooks here.
    require_once __DIR__ . '/includes/my-fluent-event-addon.php';
});

fluent_event/update_verification_failed ​

  • Type: action
  • Call sites: 2
  • When it fires: When a downloaded plugin update fails its checksum check and is not installed.

The updater refuses an update package whose checksum is missing or does not match the one published with the release. Only builds that ship the updater fire this; the WordPress.org build does not.

Parameters ​

#NameTypeDescription
1$slugstringThe plugin slug.
2$reasonstringchecksum_missing or checksum_mismatch.

Call Sites ​

SourceContextArguments
fluent-event/app/Services/PluginManager/PluginUpdater.php:316PluginUpdater::verifyPackage()$this->config['slug'], 'checksum_missing'
fluent-event/app/Services/PluginManager/PluginUpdater.php:361PluginUpdater::verifyPackage()$this->config['slug'], 'checksum_mismatch'

Example ​

php
add_action('fluent_event/update_verification_failed', function ($slug, $reason) {
    // Your code here.
}, 10, 2);

FluentEvent developer documentation