wpfts_init (Action)
The wpfts_init
hook currently has no active handlers within the plugin. It is intended for performing actions immediately after the WP Fast Total Search core initializes, but before other hooks, such as wpfts_init_addons
, are executed.
Intended Use
This hook can be used to perform actions that need to be executed before others, such as:
- Registering custom data types for indexing.
- Modifying default plugin settings.
- Initializing components required for other addons to function.
Arguments
- Currently undefined.
Return Value
- Currently undefined.
Important
- Do not use this hook in your extensions, as its functionality may change in future plugin versions. To register addons and perform actions after the plugin core initialization, use the
wpfts_init_addons
hook.
Example (Hypothetical)
// This code will not work in the current plugin version.
add_action('wpfts_init', 'my_wpfts_init_handler');
function my_wpfts_init_handler() {
// Actions to be performed immediately after WPFTS core initialization.
}
Recommendation
Instead of wpfts_init
, use the wpfts_init_addons
hook, which is designed for registering addons and is executed immediately after the plugin core initialization.