• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Easy Digital Downloads a2z

Easy Digital Downloads a2z

Easy Digital Downloads a2z

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / edd_add_download_meta_box() – Register all the meta boxes for the Download custom post type

You appear to be a bot. Output may be restricted

Description

Register all the meta boxes for the Download custom post type

Usage

$void = edd_add_download_meta_box();

Parameters

Returns

void

Source

File name: easy-digital-downloads/includes/admin/downloads/metabox.php
Lines:

1 to 23 of 23
function edd_add_download_meta_box() {
  $post_types = apply_filters( 'edd_download_metabox_post_types', array( 'download' ) );

  foreach ( $post_types as $post_type ) {

    
/** Product Prices **/
    add_meta_box( 'edd_product_prices', sprintf( __( '%1$s Prices', 'easy-digital-downloads' ), edd_get_label_singular(), edd_get_label_plural() ),  'edd_render_download_meta_box', $post_type, 'normal', 'high' );

    
/** Product Files (and bundled products) **/
    add_meta_box( 'edd_product_files', sprintf( __( '%1$s Files', 'easy-digital-downloads' ), edd_get_label_singular(), edd_get_label_plural() ),  'edd_render_files_meta_box', $post_type, 'normal', 'high' );

    
/** Product Settings **/
    add_meta_box( 'edd_product_settings', sprintf( __( '%1$s Settings', 'easy-digital-downloads' ), edd_get_label_singular(), edd_get_label_plural() ),  'edd_render_settings_meta_box', $post_type, 'side', 'default' );

    
/** Product Notes */
    add_meta_box( 'edd_product_notes', sprintf( __( '%1$s Notes', 'easy-digital-downloads' ), edd_get_label_singular(), edd_get_label_plural() ), 'edd_render_product_notes_meta_box', $post_type, 'normal', 'high' );

    if ( current_user_can( 'view_product_stats', get_the_ID() ) ) {
      
/** Product Stats */
      add_meta_box( 'edd_product_stats', sprintf( __( '%1$s Stats', 'easy-digital-downloads' ), edd_get_label_singular(), edd_get_label_plural() ), 'edd_render_stats_meta_box', $post_type, 'side', 'high' );
    }
  }
}
 

 View on GitHub View on Trac

Published: 26th November 2019 | Last updated: 26th January 2022

Primary Sidebar

Information

Function name: edd_add_download_meta_box
Plugin ref: Easy Digital Downloads
Version: 2.11.6
Sourcefile: includes/admin/downloads/metabox.php
File ref: includes/admin/downloads/metabox.php
Deprecated?: No
API Letters: A,B,D,E,M

Footer

Easy Digital Downloads a2z
Easy Digital Downloads a2z
Easy Digital Downloads a2z
WordPress 5.9.3
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  edd.wp-a2z.org
© Copyright Easy Digital Downloads a2z 2014-2022. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites