Lines:
1 to 100 of 132
<?php /** * Misc Functions * * @package EDD * @subpackage Functions * @copyright Copyright (c) 2015, Pippin Williamson * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License * @since 1.0 */ // Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) exit; /* function edd_is_test_mode() – Is Test Mode */ /* function edd_is_debug_mode() – Is Debug Mode */ /* function edd_no_guest_checkout() – Checks if Guest checkout is enabled */ /* function edd_logged_in_only() – Checks if users can only purchase downloads when logged in */ /* function edd_straight_to_checkout() – Redirect to checkout immediately after adding items to the cart? */ /* function edd_no_redownload() – Disable Redownload */ /* function edd_is_cc_verify_enabled() – Verify credit card numbers live? */ /* function edd_is_odd() – Is Odd */ /* function edd_get_file_extension() – Get File Extension */ /* function edd_string_is_image_url() – Checks if the string (filename) provided is an image URL */ /* function edd_get_ip() – Get User IP */ /* function edd_get_host() – Get user host */ /* function edd_is_host() – Check site host */ /* function edd_get_currencies() – Get Currencies */ /* function edd_get_currency() – Get the store’s set currency */ /* function edd_currency_symbol() – Given a currency determine the symbol to use. If no currency given, site default is used. */ /* function edd_get_currency_name() – Get the name of a currency */ /* function edd_month_num_to_name() – Month Num To Name */ /* function edd_get_php_arg_separator_output() – Get PHP Arg Separator Output */ /* function edd_get_current_page_url() – Get the current page URL */ /* function edd_add_cache_busting() – Adds the ‘nocache’ parameter to the provided URL */ /* function _edd_deprecated_function() – Marks a function as deprecated and informs when it has been used. */ /* function _edd_deprected_argument() – Marks an argument in a function deprecated and informs when it’s been used */ /* function edd_is_func_disabled() – Checks whether function is disabled. */ /* function edd_let_to_num() – EDD Let To Num */ /* function edd_get_symlink_url() – Retrieve the URL of the symlink directory */ /* function edd_get_symlink_dir() – Retrieve the absolute path to the symlink directory */ /* function edd_get_upload_dir() – Retrieve the absolute path to the file upload directory without the trailing slash */ /* function edd_cleanup_file_symlinks() – Delete symbolic links after they have been used */ add_action( 'edd_cleanup_file_symlinks', 'edd_cleanup_file_symlinks' ); /* function edd_use_skus() – Checks if SKUs are enabled */ /* function edd_get_timezone_id() – Retrieve timezone */ /* function edd_object_to_array() – Given an object or array of objects, convert them to arrays */ /* function edd_set_upload_dir() – Set Upload Directory */ /* function edd_has_upgrade_completed() – Check if the upgrade routine has been run for a specific action */ /* function edd_get_completed_upgrades() – Get’s the array of completed upgrade actions */ if ( ! function_exists( 'cal_days_in_month' ) ) { // Fallback in case the calendar extension is not loaded in PHP // Only supports Gregorian calendar /* function cal_days_in_month() – */ } if ( ! function_exists( 'hash_equals' ) ) : /* function hash_equals() – Compare two strings in constant time. */