W3cubDocs

/WordPress

WP_Block_Metadata_Registry::get_plugin_dir(): string

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

Version Description
6.7.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_block_metadata_registry/get_plugin_dir