wpsc_admin_get_category_array

Wpsc_admin_get_category_array Recursively step through the categories and return it in a clean multi demensional array for use in other list functions.

Description

wpsc_admin_get_category_array( (null) $parent_id = null ); 

Parameters (1)

0. $parent_id — Optional. (null) => null
The parent id.

Usage

  1. if ( !function_exists( 'wpsc_admin_get_category_array' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'wp-ecommerce/wpsc-admin/includes/save-data.functions.php'; 
  3.  
  4. // The parent id. 
  5. $parent_id = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wpsc_admin_get_category_array($parent_id); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wpsc-admin/includes/save-data.functions.php