wpsc_register_post_types_product_files_args

Located in: wpsc-functions.php

Functions that call this hook: wpsc_register_post_types()

Arguments Accepted: $args

Version Introduced: 3.8.9

Description: Use this filter to modify Product Files custom post type.

Code in context:

[php firstline=”365″ highlight=”377″]

// Purchasable product files

$args = array(

‘capability_type’ => ‘post’,

‘map_meta_cap’ => true,

‘hierarchical’ => false,

‘exclude_from_search’ => true,

‘rewrite’ => false,

‘labels’ => array(

‘name’ => __( ‘Product Files’, ‘wpsc’ ),

‘singular_name’ => __( ‘Product File’ , ‘wpsc’ ),

),

);

$args = apply_filters( ‘wpsc_register_post_types_product_files_args’, $args );

register_post_type( ‘wpsc-product-file’, $args );

[/php]