Lines:
1 to 100 of 115
<?php /** * Template Functions * * @package EDD * @subpackage Functions/Templates * @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_append_purchase_link() – Append Purchase Link */ add_action( 'edd_after_download_content', 'edd_append_purchase_link' ); /* function edd_get_purchase_link() – Get Purchase Link */ /* function edd_purchase_variable_pricing() – Variable price output */ add_action( 'edd_purchase_link_top', 'edd_purchase_variable_pricing', 10, 2 ); /* function edd_purchase_link_single_pricing_schema() – Output schema markup for single price products. */ add_action( 'edd_purchase_link_top', 'edd_purchase_link_single_pricing_schema', 10, 2 ); /* function edd_download_purchase_form_quantity_field() – Display the quantity field for a variable price when multi-purchase mode is enabled */ add_action( 'edd_purchase_link_top', 'edd_download_purchase_form_quantity_field', 10, 2 ); /* function edd_variable_price_quantity_field() – Display the quantity field for a variable price when multi-purchase mode is enabled */ add_action( 'edd_after_price_option', 'edd_variable_price_quantity_field', 10, 3 ); /* function edd_before_download_content() – Before Download Content */ add_filter( 'the_content', 'edd_before_download_content' ); /* function edd_after_download_content() – After Download Content */ add_filter( 'the_content', 'edd_after_download_content' ); /* function edd_get_button_colors() – Get Button Colors */ /* function edd_get_button_styles() – Get Button Styles */ /* function edd_downloads_default_excerpt() – Default formatting for download excerpts */ add_filter( 'edd_downloads_excerpt', 'edd_downloads_default_excerpt' ); /* function edd_downloads_default_content() – Default formatting for full download content */ add_filter( 'edd_downloads_content', 'edd_downloads_default_content' ); /* function edd_get_purchase_download_links() – Gets the download links for each item purchased */ /* function edd_get_templates_dir() – Returns the path to the EDD templates directory */ /* function edd_get_templates_url() – Returns the URL to the EDD templates directory */ /* function edd_get_template_part() – Retrieves a template part */ /* function edd_load_verification_template_once() – Only allow the pending verification message to display once */ add_filter( 'edd_allow_template_part_account_pending', 'edd_load_verification_template_once', 10, 1 ); /* function edd_locate_template() – Retrieve the name of the highest priority template file that exists. */ /* function edd_get_theme_template_paths() – Returns a list of paths to check for template locations */ /* function edd_get_theme_template_dir_name() – Returns the template directory name. */ /* function edd_add_schema_microdata() – Should we add schema.org microdata? */ /* function edd_microdata_title() – Add Microdata to download titles */ add_filter( 'the_title', 'edd_microdata_title', 10, 2 ); /* function edd_microdata_wrapper_open() – Start Microdata to wrapper download */ add_action( 'loop_start', 'edd_microdata_wrapper_open', 10 ); /* function edd_microdata_wrapper_close() – End Microdata to wrapper download */ add_action( 'loop_end', 'edd_microdata_wrapper_close', 10 ); /* function edd_microdata_description() – Add Microdata to download description */ add_filter( 'the_content', 'edd_microdata_description', 10 ); /* function edd_checkout_meta_tags() – Add no-index and no-follow to EDD checkout and purchase confirmation pages */ add_action( 'wp_head', 'edd_checkout_meta_tags' ); /* function edd_version_in_header() – Adds EDD Version to the <head> tag */ add_action( 'wp_head', 'edd_version_in_header' ); /* function edd_is_purchase_history_page() – Determines if we’re currently on the Purchase History page. */ /* function edd_add_body_classes() – Adds body classes for EDD pages */ add_filter( 'body_class', 'edd_add_body_classes' ); /* function edd_add_download_post_classes() – Adds post classes for downloads */ add_filter( 'post_class', 'edd_add_download_post_classes', 20, 3 ); /* function edd_add_oembed_price() – Adds Download product price to oembed display */ add_action( 'embed_content', 'edd_add_oembed_price' ); /* function edd_remove_embed_comments_button() – Remove comments button for download embeds */ add_action( 'embed_content_meta', 'edd_remove_embed_comments_button', 5 );