1 <?php
2 /**
3 * Checkout Functions
4 *
5 * @package EDD
6 * @subpackage Checkout
7 * @copyright Copyright (c) 2013, Pippin Williamson
8 * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
9 * @since 1.0
10 */
11
12 // Exit if accessed directly
13 if ( ! defined( 'ABSPATH' ) ) exit;
14
15 /**
16 * Determines if a user can checkout or not
17 *
18 * @since 1.3.3
19 * @global $edd_options Array of all the EDD Options
20 * @return bool Can user checkout?
21 */
22 function edd_can_checkout() {
23 global $edd_options;
24
25 $can_checkout = true; // Always true for now
26
27 return (bool) apply_filters( 'edd_can_checkout', $can_checkout );
28 }