Function __global->get_translation_object_for_hook
Definitions
sources/translation.php
- Get a particular translation object.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: object
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $hook | string | No | No | required parameter | N/A | N/A | Specific hook to use |
Returns
- Translation object
- Type: object
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get a particular translation object.
*
* @param string $hook Specific hook to use
* @return object Translation object
*/
function get_translation_object_for_hook(string $hook) : object
* Get a particular translation object.
*
* @param string $hook Specific hook to use
* @return object Translation object
*/
function get_translation_object_for_hook(string $hook) : object
