You appear to be a bot. Output may be restricted
Description
Outputs a small piece of javascript for the beacon.
Usage
HelpScout_Beacon::output_beacon_js();
Parameters
Returns
void
Source
File name: wordpress-seo/src/integrations/admin/helpscout-beacon.php
Lines:
1 to 13 of 13
public function output_beacon_js() { if ( ! $this->is_beacon_page() ) { return; } \printf( '<script type="text/javascript">window.%1$s(\'%2$s\', %3$s)</script>', ( $this->ask_consent ) ? 'wpseoHelpScoutBeaconConsent' : 'wpseoHelpScoutBeacon', \esc_html( $this->pages_ids[ $this->page ] ), // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- escaping done in format_json_encode. WPSEO_Utils::format_json_encode( (array) $this->get_session_data() ) ); }