wordpress/wp-content/themes/basic/themify/themify-utils.php
/**
 * Get demo cache dir
 * @return array
 */
Get demo cache dir
@return array
Get demo cache dir @return array
function themify_get_cache_dir() {
		static $dir_info = null;
		if($dir_info===null){
			$upload_dir = themify_upload_dir();
			$dir_info = array(
					'path'   => $upload_dir['basedir'] . '/themify/',
					'url'    => $upload_dir['baseurl'] . '/themify/'
			);
			if( ! is_file( $dir_info['path'] ) ) {
					wp_mkdir_p( $dir_info['path'] );
			}
		}
	return $dir_info;
}
function themify_get_cache_dir ( ) { static $ dir_info = null ; if ( $ dir_info === null ) { $ upload_dir = themify_upload_dir ( ) ; $ dir_info = array ( 'path' => $ upload_dir [ 'basedir' ] . '/themify/' , 'url' => $ upload_dir [ 'baseurl' ] . '/themify/' ) ; if ( ! is_file ( $ dir_info [ 'path' ] ) ) { wp_mkdir_p ( $ dir_info [ 'path' ] ) ; } } return $ dir_info ; }
Get demo cache dir
 @return array
Get demo cache dir @return array