src/Modules/Endpoint.php
function get_theme_properties() {
		if ( ! is_child_theme() ) {
			return false;
		}

		$properties = array();
		$theme      = wp_get_theme();
		// @codingStandardsIgnoreStart
		$properties['name'] = $theme->Name;
		// @codingStandardsIgnoreEnd

		// get the files in the child theme.
		require_once( ABSPATH . 'wp-admin/includes/file.php' );
		WP_Filesystem();
		global $wp_filesystem;
		$path = str_replace( ABSPATH, $wp_filesystem->abspath(), get_stylesheet_directory() );
		$list = $wp_filesystem->dirlist( $path, false, false );
		if ( $list ) {
			$list                = array_keys( self::flatten_dirlist( $list ) );
			$properties['files'] = $list;
		}

		return $properties;
	}
function get_theme_properties() {
		if ( ! is_child_theme() ) {
			return false;
		}

		$properties = array();
		$theme      = wp_get_theme();
		// @codingStandardsIgnoreStart
		$properties['name'] = $theme->Name;
		// @codingStandardsIgnoreEnd

		// get the files in the child theme.
		require_once( ABSPATH . 'wp-admin/includes/file.php' );
		WP_Filesystem();
		global $wp_filesystem;
		$path = str_replace( ABSPATH, $wp_filesystem->abspath(), get_stylesheet_directory() );
		$list = $wp_filesystem->dirlist( $path, false, false );
		if ( $list ) {
			$list                = array_keys( self::flatten_dirlist( $list ) );
			$properties['files'] = $list;
		}

		return $properties;
	}
function get_theme_properties ( ) { if ( ! is_child_theme ( ) ) { return false ; } $ properties = array ( ) ; $ theme = wp_get_theme ( ) ; // @codingStandardsIgnoreStart $ properties [ 'name' ] = $ theme -> Name ; // @codingStandardsIgnoreEnd // get the files in the child theme. require_once ( ABSPATH . 'wp-admin/includes/file.php' ) ; WP_Filesystem ( ) ; global $ wp_filesystem ; $ path = str_replace ( ABSPATH , $ wp_filesystem -> abspath ( ) , get_stylesheet_directory ( ) ) ; $ list = $ wp_filesystem -> dirlist ( $ path , false , false ) ; if ( $ list ) { $ list = array_keys ( self :: flatten_dirlist ( $ list ) ) ; $ properties [ 'files' ] = $ list ; } return $ properties ; }
Get the current theme properties.

@return mixed Properties of the current theme.
Get the current theme properties .