wpsc_coupon_cap

Located in: admin.php

Functions that call this hook: wpsc_admin_pages()

Arguments Accepted: 'administrator'

Version Introduced: 3.8.9

Description: Determine which capability is used for “Coupons” admin page.

Code in context:

[php firstline=”147″ highlight=”153″]

$purchase_logs_cap = apply_filters( ‘wpsc_purchase_logs_cap’, ‘administrator’ );

$page_hooks[] = $purchase_logs_page = add_submenu_page( ‘index.php’, __( ‘Store Sales’, ‘wpsc’ ), __( ‘Store Sales’, ‘wpsc’ ), $purchase_logs_cap, ‘wpsc-purchase-logs’, ‘wpsc_display_purchase_logs_page’ );

// Set the base page for Products

$products_page = ‘edit.php?post_type=wpsc-product’;

$manage_coupon_cap = apply_filters( ‘wpsc_coupon_cap’, ‘administrator’ );

$page_hooks[] = $edit_coupons_page = add_submenu_page( $products_page , __( ‘Coupons’, ‘wpsc’ ), __( ‘Coupons’, ‘wpsc’ ), $manage_coupon_cap, ‘wpsc-edit-coupons’, ‘wpsc_display_coupons_page’ );

// Add Settings pages

$page_hooks[] = $edit_options_page = add_options_page( __( ‘Store Settings’, ‘wpsc’ ), __( ‘Store’, ‘wpsc’ ), ‘administrator’, ‘wpsc-settings’, ‘wpsc_display_settings_page’ );

add_action( ‘admin_print_scripts-‘ . $edit_options_page , ‘wpsc_print_admin_scripts’ );

[/php]