In this article

filter

jetpack_admin_js_script_data

Filter the admin script data. When using this filter, ensure that the data is added only if it is used by some script. This filter may be called on almost every admin page load. So, one should check if the data is needed/used on that page. For example, the social (publicize) data is used only on Social admin page, Jetpack settings page and the post editor. So, the social data should be added only on those pages.

Parameters

$data
array

The script data.

Changelog

How to use this hook

See “How to use actions and filters to customize Jetpack”.