beacon = $beacon; } /** * Return an array of events that this subscriber wants to listen to. * * @since 3.2 * @author Remy Perona * * @return array */ public static function get_subscribed_events() { return [ 'admin_print_footer_scripts-settings_page_wprocket' => 'insert_script', ]; } /** * Insert HelpScout Beacon script * * @since 3.0 * @author Remy Perona * * @return void */ public function insert_script() { echo $this->beacon->insert_script(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Dynamic content is properly escaped in the view. } }