• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Yoast SEO a2z

Yoast SEO a2z

WordPress SEO a2z

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / WPSEO_HelpScout::output_beacon_js() – Outputs a small piece of javascript for the beacon.

You appear to be a bot. Output may be restricted

Description

Outputs a small piece of javascript for the beacon.

Usage

WPSEO_HelpScout::output_beacon_js();

Parameters

Returns

void

Source

File name: wordpress-seo/admin/class-helpscout.php
Lines:

1 to 8 of 8
  public function output_beacon_js() {
    printf(
      '<script type="text/javascript">window.%1$s(\'%2$s\', %3$s)</script>',
      ( $this->ask_consent ) ? 'wpseoHelpScoutBeaconConsent' : 'wpseoHelpScoutBeacon',
      esc_html( $this->beacon_id ),
      WPSEO_Utils::format_json_encode( $this->get_session_data() )
    );
  }
 

 View on GitHub View on Trac

Published: 27th November 2019 | Last updated: 7th February 2020

Primary Sidebar

Information

Function name: WPSEO_HelpScout::output_beacon_js
Class ref: WPSEO_HelpScout
Plugin ref: Yoast SEO
Version: 19.9
Sourcefile: admin/class-helpscout.php
File ref: admin/class-helpscout.php
Deprecated?: No
API Letters: B,H,J,O,W

Footer

Yoast SEO a2z
Yoast SEO a2z
WordPress SEO a2z
WordPress 6.1.1
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  wordpress-seo.wp-a2z.org
© Copyright Yoast SEO a2z 2017-2023. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites