beans_get_compiler_dir

Get beans compiler directory.

beans_get_compiler_dir( $admin = false )

Return: (string) Compiler directory.

Source

function beans_get_compiler_dir( $admin = false ) {

	$wp_upload_dir = wp_upload_dir();
	$suffix = $admin ? 'beans/admin-compiler/' : 'beans/compiler/';

	/**
	 * Deprecated. Filter the beans compiler directory.
	 *
	 * This filter is deprecated for security and compatibility purposes.
	 *
	 * @since 1.0.0
	 * @deprecated 1.3.0
	 */
	$deprecated = apply_filters( 'beans_compiler_dir', false, $admin );

	return wp_normalize_path( trailingslashit( $wp_upload_dir['basedir'] ) . $suffix );

}