WP_Block_Metadata_Registry::get_plugin_dir(): string

In this article

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Gets the normalized WordPress plugin directory path.

Return

string The normalized WordPress plugin directory path.

Source

private static function get_plugin_dir() {
	if ( ! isset( self::$plugin_dir ) ) {
		self::$plugin_dir = wp_normalize_path( WP_PLUGIN_DIR );
	}
	return self::$plugin_dir;
}

Changelog

VersionDescription
6.7.0Introduced.

User Contributed Notes

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