packages/kirki-framework/module-webfonts/src/Helper.php
public static function get_root_path() {

		// Get the upload directory for this site.
		$upload_dir = wp_upload_dir();
		$path       = untrailingslashit( wp_normalize_path( $upload_dir['basedir'] ) ) . '/webfonts';

		// If the folder doesn't exist, create it.
		if ( ! file_exists( $path ) ) {
			wp_mkdir_p( $path );
		}

		// Return the path.
		return apply_filters( 'kirki_googlefonts_root_path', $path );
	}
public static function get_root_path() {

		// Get the upload directory for this site.
		$upload_dir = wp_upload_dir();
		$path       = untrailingslashit( wp_normalize_path( $upload_dir['basedir'] ) ) . '/webfonts';

		// If the folder doesn't exist, create it.
		if ( ! file_exists( $path ) ) {
			wp_mkdir_p( $path );
		}

		// Return the path.
		return apply_filters( 'kirki_googlefonts_root_path', $path );
	}
public static function get_root_path ( ) { // Get the upload directory for this site. $ upload_dir = wp_upload_dir ( ) ; $ path = untrailingslashit ( wp_normalize_path ( $ upload_dir [ 'basedir' ] ) ) . '/webfonts' ; // If the folder doesn't exist, create it. if ( ! file_exists ( $ path ) ) { wp_mkdir_p ( $ path ) ; } // Return the path. return apply_filters ( 'kirki_googlefonts_root_path' , $ path ) ; }
Gets the root fonts folder path.
Other paths are built based on this.

@static
@since 3.0.36
@access public
@return string
Gets the root fonts folder path . Other paths are built based on this .