HEX
Server: Apache/2.4.68 (Debian)
System: Linux as-cs-widget-demo-us-central1 6.1.0-44-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
User: root (0)
PHP: 8.2.32
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/wp-recipe-maker/templates/divi/includes/extension.php
<?php

class WPRM_WPRecipeMakerDiviExtension extends DiviExtension {

	/**
	 * The gettext domain for the extension's translations.
	 *
	 * @since 9.7.0
	 *
	 * @var string
	 */
	public $gettext_domain = 'wp-recipe-maker';

	/**
	 * The extension's WP Plugin name.
	 *
	 * @since 9.7.0
	 *
	 * @var string
	 */
	public $name = 'divi-wp-recipe-maker';

	/**
	 * The extension's version
	 *
	 * @since 9.7.0
	 *
	 * @var string
	 */
	public $version = '1.0.0';

	/**
	 * WPRM_DiviExtension constructor.
	 *
	 * @param string $name
	 * @param array  $args
	 */
	public function __construct( $name = 'divi-wp-recipe-maker', $args = array() ) {
		$this->plugin_dir     = plugin_dir_path( __FILE__ );
		$this->plugin_dir_url = plugin_dir_url( $this->plugin_dir );

		$this->_builder_js_data = array(
			'nonce' => wp_create_nonce( 'wp_rest' ),
			'endpoints' => array(
				'utilities' => rtrim( get_rest_url( null, 'wp-recipe-maker/v1/utilities' ), '/' ),
			),
		);

		parent::__construct( $name, $args );
	}
}

new WPRM_WPRecipeMakerDiviExtension;