Executes a callback after Torro Forms has been initialized.
Description
This function should be used by all Torro Forms extensions to initialize themselves.
This doc block was added in the 1500th commit 🙂
Parameters
- $callback
-
(callable) (Required) Callback to bootstrap the extension.
Source
File: torro-forms.php
function torro_load( $callback ) { if ( did_action( 'torro_loaded' ) || doing_action( 'torro_loaded' ) ) { call_user_func( $callback, torro() ); return; } add_action( 'torro_loaded', $callback, 10, 1 ); }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |