# speechkit/7.2.0/src/core/class-urls.php

BeyondWords – AI audio for publishers, version 7.2.0. 97 lines.

- Page: https://pluginprobe.com/plugins/speechkit/7.2.0/code/src/core/class-urls.php
- Raw: https://pluginprobe.com/plugins/speechkit/7.2.0/raw/src/core/class-urls.php
- Modified: 2026-09-25T15:14:58+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/speechkit/7.2.0/code/src/core/class-urls.php#L10-L20`.

```php
<?php
/**
 * BeyondWords URL registry: production defaults with optional `wp-config.php` overrides.
 *
 * @package BeyondWords\Core
 * @since   3.0.0
 * @since   7.0.0 Refactored to BeyondWords namespace with snake_case methods.
 *                Renamed from BeyondWords\Core\Environment to BeyondWords\Core\Urls.
 */

declare( strict_types = 1 );

namespace BeyondWords\Core;

defined( 'ABSPATH' ) || exit;

/**
 * URL registry — production defaults with optional `wp-config.php` overrides.
 *
 * @since 7.0.0 Refactored to BeyondWords namespace with snake_case methods.
 */
class Urls {

	const BEYONDWORDS_API_URL        = 'https://api.beyondwords.io/v1';
	const BEYONDWORDS_BACKEND_URL    = '';
	const BEYONDWORDS_JS_SDK_URL     = 'https://proxy.beyondwords.io/npm/@beyondwords/player@latest/dist/umd.js';
	const BEYONDWORDS_AMP_PLAYER_URL = 'https://audio.beyondwords.io/amp/%d?podcast_id=%s';
	const BEYONDWORDS_AMP_IMG_URL    = 'https://beyondwords-cdn-b7fyckdeejejb6dj.a03.azurefd.net/assets/logo.svg';
	const BEYONDWORDS_DASHBOARD_URL  = 'https://dash.beyondwords.io';

	/**
	 * BeyondWords REST API base URL.
	 */
	public static function get_api_url(): string {
		if ( defined( 'BEYONDWORDS_API_URL' ) && strlen( \BEYONDWORDS_API_URL ) ) {
			return \BEYONDWORDS_API_URL;
		}

		return static::BEYONDWORDS_API_URL;
	}

	/**
	 * BeyondWords backend URL (legacy; usually empty).
	 */
	public static function get_backend_url(): string {
		if ( defined( 'BEYONDWORDS_BACKEND_URL' ) && strlen( \BEYONDWORDS_BACKEND_URL ) ) {
			return \BEYONDWORDS_BACKEND_URL;
		}

		return static::BEYONDWORDS_BACKEND_URL;
	}

	/**
	 * Front-end JS SDK script URL.
	 */
	public static function get_js_sdk_url(): string {
		if ( defined( 'BEYONDWORDS_JS_SDK_URL' ) && strlen( \BEYONDWORDS_JS_SDK_URL ) ) {
			return \BEYONDWORDS_JS_SDK_URL;
		}

		return static::BEYONDWORDS_JS_SDK_URL;
	}

	/**
	 * AMP iframe player URL pattern (`%d` for project ID, `%s` for content ID).
	 */
	public static function get_amp_player_url(): string {
		if ( defined( 'BEYONDWORDS_AMP_PLAYER_URL' ) && strlen( \BEYONDWORDS_AMP_PLAYER_URL ) ) {
			return \BEYONDWORDS_AMP_PLAYER_URL;
		}

		return static::BEYONDWORDS_AMP_PLAYER_URL;
	}

	/**
	 * Placeholder image URL for AMP players.
	 */
	public static function get_amp_img_url(): string {
		if ( defined( 'BEYONDWORDS_AMP_IMG_URL' ) && strlen( \BEYONDWORDS_AMP_IMG_URL ) ) {
			return \BEYONDWORDS_AMP_IMG_URL;
		}

		return static::BEYONDWORDS_AMP_IMG_URL;
	}

	/**
	 * BeyondWords dashboard URL.
	 */
	public static function get_dashboard_url(): string {
		if ( defined( 'BEYONDWORDS_DASHBOARD_URL' ) && strlen( \BEYONDWORDS_DASHBOARD_URL ) ) {
			return \BEYONDWORDS_DASHBOARD_URL;
		}

		return static::BEYONDWORDS_DASHBOARD_URL;
	}
}

```
