Current Path : /home/sudancam/public_html3/games/wp-content/plugins/wp-rss-aggregator/src/Wp/Asset/ |
Current File : /home/sudancam/public_html3/games/wp-content/plugins/wp-rss-aggregator/src/Wp/Asset/ScriptInterface.php |
<?php namespace RebelCode\Wpra\Core\Wp\Asset; /** * Interface for script assets. * * @since 4.14 */ interface ScriptInterface extends AssetInterface { /** * Localizes the script with given data. * * @since 4.14 * * @param string $key The key, also used for the JS var name. * @param callable $callback The callback that returns the localization data. * * @return AssetInterface A copy of this instance with the localized data. */ public function localize($key, callable $callback); }