Home » Resources » Documentation » Get Involved » WP e-Commerce Hooks API

WP e-Commerce Hooks API

WP E-Commerce supports hooks and filters like most WordPress-based software. Below is a list of the currently available filters and hooks (version 3.7.6 beta 3):

Filters

get_product_tags

get_the_tags

product_tag_cloud

product_tag_link

the_products

the_tags

widget_title

wp_generate_product_tag_cloud

wpsc_additional_pages

wpsc_admin_category_dropdown_tree_search_sql

wpsc_admin_products_list_search_sql

wpsc_alter_database_template

wpsc_cart_messages

wpsc_convert_tax_prices

wpsc_convert_total_shipping

wpsc_coupon_compare_logic

Description: Filter to add new coupon condition logic, gets triggered if no $c['property'] matches the default coupon logics.

  • File: wpsc-includes/coupons.class.php
  • Function: compare_logic()
  • Arguments
    • false : (boolean) Return a default value of false. The coupon logic will override with a value of true if the coupon can be applied.
    • $c : (array) Coupon Condition logic
    • $product_obj : (object) Product Info
  • Return: (boolean) Apply coupon?

wpsc_coupon_rule_property_options

Description: Filter to add another property to the coupon conditions menu.

wpsc_delete_meta

wpsc_display_category_loop_category_sql_segments

wpsc_display_product_form_get

wpsc_do_convert_price

wpsc_filter_file

wpsc_jpeg_quality

wpsc_mobile_scripts_css_filters

wpsc_pre_transaction_results

wpsc_price_display_changer

wpsc_product_alert

wpsc_product_category_and_tag_forms_group_search_sql

wpsc_product_category_and_tag_forms_output

wpsc_product_page_order_form_name

wpsc_products_page_forms

wpsc_purchlogitem_links_start

wpsc_settings_tabs

wpsc_shipping_modules

wpsc_theme_folder

wpsc_transaction_result_content

wpsc_update_meta

Hooks

flash_uploader

manage_posts_custom_column

media_buttons

pre_get_products

the_editor

the_editor_content

upload_file_glob

user_registration_email

wpsc_activate_subscription

wpsc_add_advanced_options

wpsc_add_submenu

wpsc_admin_edit_products_js

wpsc_admin_post_activity

wpsc_admin_pre_activity

wpsc_akst_head

wpsc_alternate_cart_html

wpsc_alternate_cart_html

wpsc_before_form_of_shopping_cart

Description: Hook to add additional content before the checkout form on the shopping cart page.

wpsc_before_shipping_of_shopping_cart

wpsc_bottom_of_shopping_cart

wpsc_cart_loop_end

wpsc_cart_loop_start

wpsc_checkout_form_fields_page

wpsc_checkout_loop_end

wpsc_checkout_loop_start

wpsc_confirm_checkout

wpsc_delete_product

wpsc_edit_product

wpsc_enqueue_user_script_and_css

wpsc_loop_end

wpsc_loop_start

wpsc_product_addon_after_descr

wpsc_product_addons

wpsc_product_before_description

wpsc_product_rated

wpsc_save_cart_item

wpsc_submit_checkout

wpsc_top_of_products_page

wpsc_transaction_result_cart_item