wpsc_purchase_logs_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 “Store Sales” admin page.

Code in context:

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

if ( wpsc_show_update_link() )

$page_hooks[] = add_submenu_page( ‘index.php’, __( ‘Update Store’, ‘wpsc’ ), __( ‘Store Update’, ‘wpsc’ ), ‘administrator’, ‘wpsc-update’, ‘wpsc_display_update_page’ );

$store_upgrades_cap = apply_filters( ‘wpsc_upgrades_cap’, ‘administrator’ );

$page_hooks[] = add_submenu_page( ‘index.php’, __( ‘Store Upgrades’, ‘wpsc’ ), __( ‘Store Upgrades’, ‘wpsc’ ), $store_upgrades_cap, ‘wpsc-upgrades’, ‘wpsc_display_upgrades_page’ );

$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’ );

[/php]