wpseek.com
WordPress开发者和主题制作者的搜索引擎



get_space_allowed › WordPress Function

Since
已弃用n/a
get_space_allowed ( 没有参数 )
返回:
  • (int) Quota in megabytes.
定义在:
文档:
Change Log:
  • MU

Returns the upload quota for the current blog.



源码

function get_space_allowed() {
	$space_allowed = get_option( 'blog_upload_space' );

	if ( ! is_numeric( $space_allowed ) ) {
		$space_allowed = get_site_option( 'blog_upload_space' );
	}

	if ( ! is_numeric( $space_allowed ) ) {
		$space_allowed = 100;
	}

	/**
	 * Filters the upload quota for the current site.
	 *
	 * @since 3.7.0
	 *
	 * @param int $space_allowed Upload quota in megabytes for the current blog.
	 */
	return apply_filters( 'get_space_allowed', $space_allowed );
}