wpsc_additional_pages
The WP eCommerce wpsc additional pages hook.
Description
Parameters (2)
- 0. $page_hooks (unknown)
- The page hooks.
- 1. $products_page (unknown)
- The products page.
Usage
- To run the hook, copy the example below.
- $page_hooks = apply_filters( 'wpsc_additional_pages', $page_hooks, $products_page );
- if ( !empty( $page_hooks ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the wpsc_additional_pages callback
- function filter_wpsc_additional_pages( $page_hooks, $products_page ) {
- // make filter magic happen here...
- return $page_hooks;
- };
- // add the filter
- add_filter( 'wpsc_additional_pages', 'filter_wpsc_additional_pages', 10, 2 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'wpsc_additional_pages', 'filter_wpsc_additional_pages', 10, 2 );
Defined (1)
The filter is defined in the following location(s).
- /wpsc-admin/admin.php
- $page_hooks = apply_filters( 'wpsc_additional_pages', $page_hooks, $products_page );