PHP 7.4.33
Preview: constants.php Size: 1.12 KB
/var/www/candid-stg.bitkit.dk/httpdocs/wp-content/plugins/wp-graphql/constants.php
<?php
/**
 * Sets up constants for use throughout the plugin and by other extending plugins.
 *
 * This is in its own file so that it can be used via the autoloaded classes, but also
 * can be pulled in when composer dependencies have not been installed.
 *
 * @return void
 */
function graphql_setup_constants() {

	// Whether to autoload the files or not.
	// This must be defined here and not within the WPGraphQL.php because this constant
	// determines whether to autoload classes or not
	if ( ! defined( 'WPGRAPHQL_AUTOLOAD' ) ) {
		define( 'WPGRAPHQL_AUTOLOAD', true );
	}

	// Plugin version.
	if ( ! defined( 'WPGRAPHQL_VERSION' ) ) {
		define( 'WPGRAPHQL_VERSION', '2.7.0' );
	}

	// Plugin Folder Path.
	if ( ! defined( 'WPGRAPHQL_PLUGIN_DIR' ) ) {
		define( 'WPGRAPHQL_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
	}

	// Plugin Root File.
	if ( ! defined( 'WPGRAPHQL_PLUGIN_FILE' ) ) {
		define( 'WPGRAPHQL_PLUGIN_FILE', WPGRAPHQL_PLUGIN_DIR . '/wp-graphql.php' );
	}

	// The minimum version of PHP this plugin requires to work properly
	if ( ! defined( 'GRAPHQL_MIN_PHP_VERSION' ) ) {
		define( 'GRAPHQL_MIN_PHP_VERSION', '7.4' );
	}
}

Directory Contents

Dirs: 5 × Files: 6
Name Size Perms Modified Actions
build DIR
- drwxr-xr-x 2026-02-02 10:01:23
Edit Download
- drwxr-xr-x 2026-02-02 10:01:23
Edit Download
phpcs DIR
- drwxr-xr-x 2026-02-02 10:01:23
Edit Download
src DIR
- drwxr-xr-x 2026-02-02 10:01:23
Edit Download
vendor DIR
- drwxr-xr-x 2026-02-02 10:01:23
Edit Download
30.52 KB lrw-r--r-- 2026-02-02 10:01:23
Edit Download
303 B lrw-r--r-- 2026-02-02 10:01:23
Edit Download
1.12 KB lrw-r--r-- 2026-02-02 10:01:23
Edit Download
1.23 KB lrw-r--r-- 2026-02-02 10:01:23
Edit Download
40.69 KB lrw-r--r-- 2026-02-02 10:01:23
Edit Download
5.67 KB lrw-r--r-- 2026-02-02 10:01:23
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).