WP_Scripts::print_translations( string $handle, bool $display = true )
Prints translations set for a specific handle.
Parameters
- $handle
-
(Required) Name of the script to add the inline script to.<br> Must be lowercase.
- $display
-
(Optional) Whether to print the script instead of just returning it.
Default value: true
Return
(string|false) Script on success, false otherwise.
Source
File: wp-includes/class-wp-scripts.php
Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |