Tribe__Admin__Help_Page::register_assets()
Register the Admin assets for the help page
Return
(void)
Source
File: src/Tribe/Admin/Help_Page.php
public function register_assets() {
$plugin = Tribe__Main::instance();
tribe_asset(
$plugin,
'tribe-admin-help-page',
'admin/help-page.js',
[ 'tribe-clipboard', 'tribe-common' ],
'admin_enqueue_scripts',
[
'conditionals' => [ $this, 'is_current_page' ],
'localize' => [
'name' => 'tribe_system_info',
'data' => [
'sysinfo_optin_nonce' => wp_create_nonce( 'sysinfo_optin_nonce' ),
'clipboard_btn_text' => __( 'Copy to clipboard', 'tribe-common' ),
'clipboard_copied_text' => __( 'System info copied', 'tribe-common' ),
'clipboard_fail_text' => __( 'Press "Cmd + C" to copy', 'tribe-common' ),
],
],
]
);
}
Changelog
| Version | Description |
|---|---|
| 4.9.12 | Introduced. |