Description
The wsf_translate_load filter hook returns true when a compatible translation plugin such as WPML or Polylang are installed. If you need access the wsf_translate filter hook you apply your own filter and return true.
Usage
add_filter( 'wsf_translate_load', 'my_hook_function', 10, 1 );
Parameters
$translate_loadBooleanIf true the translation class will load.
Example
// Callback function for the wsf_translate_load filter hook
function my_hook_function( $translate_load ) {
// Your code here ...
// Return value
return $translate_load;
}
// Add a callback function for the wsf_translate_load filter hook
add_filter( 'wsf_translate_load', 'my_hook_function', 10, 1 );
Source File
This hook can be found in:<plugin root>/includes/class-ws-form.php