registry()->register_condition( $condition ); } /** * Register a rule action. Call on the `joinery_core_init` action. * * @param Action $action Action implementation. */ function joinery_register_action( Action $action ): void { Plugin::instance()->registry()->register_action( $action ); } /** * The installed core version, for plugins that need a minimum. */ function joinery_core_version(): string { return JOINERY_CORE_VERSION; } /** * The customer wallet: one store-credit balance shared by every Joinery plugin. * Available from Joinery Core 0.2.0. */ function joinery_wallet(): Ledger { return Plugin::instance()->wallet(); }