LLMS_Site::get_feature_constant( string $feature )

Retrieve a constant value for a site feature


Description Description

This allows site features to be explicitly enabled or disabled in a wp-config.php file.


Top ↑

Parameters Parameters

$feature

(string) (Required) Feature id/key.


Top ↑

Return Return

(bool)


Top ↑

Source Source

File: includes/class.llms.site.php

	protected static function get_feature_constant( $feature ) {

		$constant = sprintf( 'LLMS_SITE_FEATURE_%s', strtoupper( $feature ) );
		if ( defined( $constant ) ) {
			return constant( $constant );
		}

		return null;

	}


Top ↑

Changelog Changelog

Changelog
Version Description
4.12.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.