Lines:
1 to 100 of 109
<?php /** * Metabox Functions * * @package EDD * @subpackage Admin/Downloads * @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; /** All Downloads *****************************************************************/ /* function edd_add_download_meta_box() – Register all the meta boxes for the Download custom post type */ add_action( 'add_meta_boxes', 'edd_add_download_meta_box' ); /* function edd_download_metabox_fields() – Returns default EDD Download meta fields. */ /* function edd_download_meta_box_save() – Save post meta when the save_post action is called */ add_action( 'save_post', 'edd_download_meta_box_save', 10, 2 ); /* function edd_sanitize_bundled_products_save() – Sanitize bundled products on save */ add_filter( 'edd_metabox_save__edd_bundled_products', 'edd_sanitize_bundled_products_save' ); /* function edd_metabox_save_check_blank_rows() – Don’t save blank rows. */ /** Download Configuration *****************************************************************/ /* function edd_render_download_meta_box() – Download Metabox */ /* function edd_render_files_meta_box() – Download Files Metabox */ /* function edd_render_settings_meta_box() – Download Settings Metabox */ /* function edd_render_price_field() – Price Section */ add_action( 'edd_meta_box_price_fields', 'edd_render_price_field', 10 ); /* function edd_render_price_row() – Individual Price Row */ add_action( 'edd_render_price_row', 'edd_render_price_row', 10, 4 ); /* function edd_render_product_type_field() – Product type options */ add_action( 'edd_meta_box_files_fields', 'edd_render_product_type_field', 10 ); /* function edd_render_products_field() – Renders product field */ add_action( 'edd_meta_box_files_fields', 'edd_render_products_field', 10 ); /* function edd_render_files_field() – File Downloads section. */ add_action( 'edd_meta_box_files_fields', 'edd_render_files_field', 20 ); /* function edd_render_file_row() – Individual file row. */ add_action( 'edd_render_file_row', 'edd_render_file_row', 10, 4 ); /* function edd_download_media_strings() – Alter the Add to post button in the media manager for downloads */ add_filter( 'media_view_strings', 'edd_download_media_strings', 10, 1 ); /* function edd_render_download_limit_row() – File Download Limit Row */ add_action( 'edd_meta_box_settings_fields', 'edd_render_download_limit_row', 20 ); /* function edd_render_dowwn_tax_options() – Product tax settings */ /* function edd_render_down_tax_options() – Product tax settings */ add_action( 'edd_meta_box_settings_fields', 'edd_render_down_tax_options', 30 ); /* function edd_render_download_quantity_option() – Product quantity settings */ add_action( 'edd_meta_box_settings_fields', 'edd_render_download_quantity_option', 30 ); /* function edd_render_meta_box_shortcode() – Add shortcode to settings meta box */ add_action( 'edd_meta_box_settings_fields', 'edd_render_meta_box_shortcode', 35 ); /* function edd_render_accounting_options() – Render Accounting Options */ add_action( 'edd_meta_box_settings_fields', 'edd_render_accounting_options', 25 ); /* function edd_render_disable_button() – Render Disable Button */ add_action( 'edd_meta_box_settings_fields', 'edd_render_disable_button', 30 ); /** Product Notes *****************************************************************/ /* function edd_render_product_notes_meta_box() – Product Notes Meta Box */ /* function edd_render_product_notes_field() – Render Product Notes Field */ add_action( 'edd_product_notes_meta_box_fields', 'edd_render_product_notes_field' ); /** Stats *****************************************************************/ /* function edd_render_stats_meta_box() – Render Stats Meta Box */ /* function edd_reviews_location() – Get the path of the Product Reviews plugin */