Sunshine Photo Cart 3.8.2 has 156 actions and 297 filters, read directly from its source code on Nov 18, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when Sunshine Photo Cart fires an action
add_action( 'post_edd_sl_plugin_updater_setup', function( $edd_plugin_data ) {
// Your code runs here.
}, 10, 1 );
// Change a value Sunshine Photo Cart is about to use
add_filter( 'edd_sl_plugin_updater_api_params', function( $api_params, $api_data, $plugin_file ) {
// Change $api_params here.
return $api_params;
}, 10, 3 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Filters the post arguments used during an async request. */ apply_filters( "{$this->identifier}_post_args", $args ); -
/** * Filters the post arguments used during an async request. */ apply_filters( "{$this->identifier}_query_args", $args ); -
/** * Filters the post arguments used during an async request. */ apply_filters( "{$this->identifier}_query_url", $url ); -
/** * Filters the parameters sent in the API request. */ apply_filters( 'edd_sl_plugin_updater_api_params', $api_params, $this->api_data, $this->plugin_file ); -
/** * Fires after the $edd_plugin_data is setup. */ do_action( 'post_edd_sl_plugin_updater_setup', $edd_plugin_data ); -
/** * Fires once, when a gallery is published and all of its images have finished * processing. */ do_action( 'sunshine_gallery_ready', $gallery_id ); -
/** * How many seconds one import request keeps working before it reports back. */ apply_filters( 'sunshine_import_batch_seconds', 20 ); -
/** * Check other kinds of source folder, such as cloud buckets. */ apply_filters_ref_array( 'sunshine_source_watch_check', array( $more, &$batch, $start ) ); -
/** * Bring in a photo Sunshine can't copy itself, such as one in a cloud bucket. */ apply_filters( 'sunshine_source_watch_import', null, $item ); -
/** * The photos about to be queued for a gallery. */ apply_filters( 'sunshine_source_watch_new_items', $new, $files, $gallery_id ); -
do_action( 'sunshine_after_content' ); -
do_action( 'sunshine_before_content' ); -
apply_filters( 'the_content', $this->data->post_content ); -
apply_filters( 'sunshine_image_sizes', $image_sizes ); -
do_action( 'sunshine_delete_favorite', $image_id, $this ); -
do_action( 'sunshine_after_image_process', $attachment_id, $file_path, $apply_watermark ); -
apply_filters( 'sunshine_cart_item_tax_rate', SPC()->cart->get_tax_rate(), $this ); -
do_action( 'sunshine_email_receipt_after_order_shipping', $order ); -
apply_filters( 'sunshine_gallery_require_login_signup_message', __( 'The gallery you tried to access is private and requires you to login first', 'sunshine-photo-cart' ), $gallery ); -
apply_filters( 'sunshine_image_size', 'sunshine-large' ); -
apply_filters( 'widget_title', $instance['title'] ); -
apply_filters( 'wpml_object_id', $page_id, 'page', true ); -
apply_filters( "{$this->identifier}_cron_interval", 5 ); -
do_action( 'sunshine_add_favorite', $image_id, $this ); -
apply_filters( 'sunshine_add_to_cart_item', $item ); -
do_action( 'sunshine_admin_order_status_update', $order ); -
do_action( 'sunshine_after_login', $post_data ); -
apply_filters( 'sunshine_after_login_result', array(), SPC()->customer ); -
do_action( 'sunshine_after_signup', $customer, $data['email'] ); -
do_action( 'sunshine_before_multi_image_select_images', $product, $gallery ); -
apply_filters( 'sunshine_cart_item_max_qty', null, $this ); -
do_action( 'sunshine_checkout' ); -
apply_filters( 'sunshine_checkout_redirect', $order->get_received_permalink(), $order ); -
do_action( 'sunshine_email_receipt_after_order_notes', $order ); -
apply_filters( 'sunshine_gallery_require_login_message', __( 'You must have proper permissions to view this gallery', 'sunshine-photo-cart' ), $gallery ); -
apply_filters( 'sunshine_get_country_locale_base', $this->locale['default'] ); -
apply_filters( 'sunshine_invoice_title', sprintf( __( 'Invoice for %s', 'sunshine-photo-cart' ), $order->get_name() ), $order ); -
apply_filters( 'sunshine_login_validation', '', $post_data ); -
apply_filters( 'sunshine_order_email_search_replace', $search_replace, $order ); -
do_action( 'sunshine_order_notify', $order ); -
apply_filters( 'sunshine_order_statuses_paid', array( 'new', 'processing', 'pickup', 'shipped' ) ); -
apply_filters( 'sunshine_pagination_next_label', __( 'Next', 'sunshine-photo-cart' ) . ' »' ); -
apply_filters( 'sunshine_pagination_previous_label', '« ' . __( 'Previous', 'sunshine-photo-cart' ) ); -
do_action( 'sunshine_plan_activated', $this ); -
do_action( "sunshine_pre_update_{$this->post_type}", $this ); -
apply_filters( 'sunshine_product_name_separator', ' — ' ); -
apply_filters( 'sunshine_shipping_methods', array() ); -
apply_filters( 'sunshine_square_background_reconcile', true ); -
apply_filters( 'wpml_active_languages', array() ); -
apply_filters( "{$this->identifier}_default_time_limit", $limit ); -
apply_filters( "{$this->identifier}_memory_exceeded", $return ); -
apply_filters( "{$this->identifier}_queue_lock_time", $lock_duration ); -
apply_filters( "{$this->identifier}_time_exceeded", $return ); -
do_action( "{$this->prefix}{$field['type']}_display", $field ); -
apply_filters( 'edd_sl_api_request_verify_ssl', true, $this ); -
apply_filters( 'get_post_metadata', null, $gallery_id, $meta_key, true, 'post' ); -
apply_filters( 'https_local_ssl_verify', false ); -
do_action( "in_plugin_update_message-{$file}", $plugin, $plugin ); -
apply_filters( 'is_sunshine', $return ); -
apply_filters( 'is_sunshine_page', $is_page, $page, $post ); -
apply_filters( 'plugin_locale', determine_locale(), $domain ); -
do_action( "sunshine_{$this->key}_settings_after" ); -
do_action( "sunshine_{$this->key}_settings_before" ); -
apply_filters( "sunshine_{$type}_fields", $address_fields, $country ); -
apply_filters( "sunshine_{rtrim($type,'_')}_fields", $address_fields, $country ); -
apply_filters( "sunshine_{strtolower($currency)}_currency_filter_after", $formatted, $currency, $price ); -
apply_filters( "sunshine_{strtolower($currency)}_currency_filter_before", $formatted, $currency, $price ); -
do_action( 'sunshine_account' ); -
do_action( "sunshine_account_{$key}", $endpoint ); -
do_action( 'sunshine_account_content' ); -
apply_filters( 'sunshine_account_endpoint_url', $url, $endpoint ); -
apply_filters( 'sunshine_account_endpoints', array( 'orders' => SPC()->get_option( 'account_orders_endpoint', 'my-orders' ), 'view-order' => SPC()->get_option( 'account_view_order_endpoint', 'order-details' ), 'addresses' => SPC()->get_option( 'account_addresses_endpoint', 'my-addresses' ), 'profile' => SPC()->get_option( 'account_edit_endpoint', 'my-profile' ), 'galleries' => SPC()->get_option( 'account_galleries_endpoint', 'my-galleries... ); -
apply_filters( 'sunshine_account_require_login_message', '', $post_data ); -
apply_filters( 'sunshine_active_addons', array() ); -
apply_filters( 'sunshine_active_shipping_methods', $final_shipping_methods ); -
do_action( 'sunshine_add_cart_item', $item ); -
do_action( 'sunshine_add_comment', $comment, $image ); -
apply_filters( 'sunshine_add_to_cart_meta', array(), $product, intval( $image_id ) ); -
apply_filters( 'sunshine_address_formats', array( 'default' => "{name}\n{address1}\n{address2}\n{city}\n{state}\n{postcode}\n{country}", 'AT' => "{name}\n{address1}\n{address2}\n{postcode} {city}\n{country}", 'AU' => "{name}\n{address1}\n{address2}\n{city} {state} {postcode}\n{country}", 'BE' => "{name}\n{address1}\n{address2}\n{postcode} {city}\n{country}", 'CA' => "{name}\n{address1}\n{address2}\n{city} {state_code} {postcode}\n{count... ); -
do_action( 'sunshine_admin_after_order_billing', $order ); -
do_action( 'sunshine_admin_after_order_general', $order ); -
do_action( 'sunshine_admin_after_order_shipping', $order ); -
apply_filters( 'sunshine_admin_bar', false ); -
apply_filters( 'sunshine_admin_gallery_image_item', $html, $image ); -
apply_filters( 'sunshine_admin_gallery_images_load', 20 ); -
apply_filters( "sunshine_admin_meta_{$this->post_type}", $this->options ); -
apply_filters( "sunshine_admin_meta_boxes_{$this->post_type}", $this->meta_boxes ); -
do_action( 'sunshine_admin_order_buttons', $order ); -
apply_filters( 'sunshine_admin_order_items_custom_rows', '', $cart_item ); -
do_action( "sunshine_admin_order_tab_{$key}", $order ); -
apply_filters( 'sunshine_admin_order_tabs', $tabs, $order ); -
do_action( 'sunshine_admin_order_totals', $order ); -
apply_filters( 'sunshine_admin_product_price_column', $product->get_price_formatted(), $product ); -
do_action( 'sunshine_after_cart_form' ); -
do_action( 'sunshine_after_discount_form' ); -
do_action( 'sunshine_after_email_content' ); -
do_action( 'sunshine_after_gallery_item', $gallery ); -
do_action( 'sunshine_after_image', $image ); -
do_action( 'sunshine_after_init' ); -
do_action( 'sunshine_after_loop_image_item', $image ); -
do_action( 'sunshine_after_order_review_cart' ); -
do_action( 'sunshine_after_order_review_summary' ); -
do_action( 'sunshine_after_product', $product, $image ); -
do_action( 'sunshine_after_product_list', $action_image ); -
apply_filters( 'sunshine_allowed_file_extensions', $extensions ); -
apply_filters( 'sunshine_allowed_payment_methods', $final_payment_methods ); -
apply_filters( 'sunshine_allowed_product_types_for_image', $allowed_types ); -
apply_filters( 'sunshine_allowed_product_types_for_store', $allowed_types ); -
apply_filters( 'sunshine_allowed_shipping_methods', $final_shipping_methods ); -
apply_filters( 'sunshine_available_shipping_methods', $shipping_methods ); -
do_action( 'sunshine_before_email_content' ); -
do_action( 'sunshine_before_gallery_item', $gallery ); -
do_action( 'sunshine_before_init' ); -
do_action( 'sunshine_before_loop_image_item', $image ); -
do_action( 'sunshine_before_product', $product, $image ); -
do_action( 'sunshine_before_product_list', $action_image ); -
do_action( 'sunshine_cart' ); -
do_action( 'sunshine_cart_after_discounts_and_tax', $this ); -
apply_filters( 'sunshine_cart_discount', $this->discount, $items ); -
do_action( 'sunshine_cart_discount_removed', $discount_code ); -
do_action( 'sunshine_cart_discounts_removed' ); -
apply_filters( 'sunshine_cart_item_before_order', $item ); -
apply_filters( 'sunshine_cart_item_can_edit_qty', true, $this ); -
apply_filters( 'sunshine_cart_item_comments', $this->comments, $item ); -
apply_filters( 'sunshine_cart_item_discount', $this->discount, $this ); -
do_action( 'sunshine_cart_item_extra', $this ); -
apply_filters( 'sunshine_cart_item_image_name', $image_name, $this ); -
apply_filters( 'sunshine_cart_item_image_url', $image_url, $this ); -
apply_filters( 'sunshine_cart_item_min_qty', $min_qty, $this ); -
apply_filters( 'sunshine_cart_items', $final_contents, $this ); -
apply_filters( 'sunshine_cart_needs_account', $needs_account ); -
apply_filters( 'sunshine_cart_needs_delivery', $needs_delivery ); -
apply_filters( 'sunshine_cart_needs_shipping', $needs_shipping ); -
apply_filters( 'sunshine_cart_tax', $this->tax, $this->tax_rate ); -
apply_filters( 'sunshine_cart_taxable_total', $ship_taxable, $this->tax_rate ); -
do_action( 'sunshine_cart_update' ); -
apply_filters( 'sunshine_category_name', $this->name, $this ); -
do_action( "sunshine_checkout_after_{$section_id}" ); -
apply_filters( 'sunshine_checkout_allow_order_notify', true, $order ); -
do_action( 'sunshine_checkout_before_payment', $order ); -
do_action( 'sunshine_checkout_before_submit' ); -
do_action( 'sunshine_checkout_create_order', $order, $data ); -
apply_filters( 'sunshine_checkout_create_order_mode', 'live', $order ); -
do_action( 'sunshine_checkout_end_form' ); -
apply_filters( 'sunshine_checkout_fields', $fields ); -
do_action( 'sunshine_checkout_init_order_success', $order ); -
apply_filters( 'sunshine_checkout_needs_billing_address', $needs_billing_address, $this ); -
apply_filters( 'sunshine_checkout_post_process_order', true, $order, $data ); -
sunshine_checkout_process_payment_{$this->get_checkout_data_item('payment_method')}
action Copy link Customise this hookdo_action( "sunshine_checkout_process_payment_{$this->get_checkout_data_item('payment_method')}", $order ); -
do_action( "sunshine_checkout_section_{$this->active_section}_process", $data ); -
apply_filters( 'sunshine_checkout_section_billing', $fields['billing'] ); -
apply_filters( 'sunshine_checkout_section_contact', $fields['contact'] ); -
apply_filters( 'sunshine_checkout_section_delivery', $fields['delivery'] ); -
apply_filters( 'sunshine_checkout_section_payment', $fields['payment'] ); -
apply_filters( 'sunshine_checkout_section_shipping', $fields['shipping'] ); -
do_action( 'sunshine_checkout_start_form' ); -
apply_filters( 'sunshine_checkout_submit_label', $submit_label ); -
do_action( 'sunshine_checkout_update_payment_method', $payment_method ); -
do_action( 'sunshine_checkout_validation', $this->active_section, $data ); -
apply_filters( 'sunshine_classes', $classes ); -
apply_filters( 'sunshine_countries', array( 'AF' => __( 'Afghanistan', 'sunshine-photo-cart' ), 'AX' => __( 'Åland Islands', 'sunshine-photo-cart' ), 'AL' => __( 'Albania', 'sunshine-photo-cart' ), 'DZ' => __( 'Algeria', 'sunshine-photo-cart' ), 'AS' => __( 'American Samoa', 'sunshine-photo-cart' ), 'AD' => __( 'Andorra', 'sunshine-photo-cart' ), 'AO' => __( 'Angola', 'sunshine-photo-cart' ), 'AI' => __( 'Anguilla', 'sunshine... ); -
apply_filters( 'sunshine_create_order_status', $order_status, $order ); -
apply_filters( 'sunshine_currencies', array( 'AED' => __( 'United Arab Emirates dirham', 'sunshine-photo-cart' ), 'AFN' => __( 'Afghan afghani', 'sunshine-photo-cart' ), 'ALL' => __( 'Albanian lek', 'sunshine-photo-cart' ), 'AMD' => __( 'Armenian dram', 'sunshine-photo-cart' ), 'ANG' => __( 'Netherlands Antillean guilder', 'sunshine-photo-cart' ), 'AOA' => __( 'Angolan kwanza', 'sunshine-photo-cart' ), 'ARS' => __( 'Argentine peso'... ); -
apply_filters( 'sunshine_currency', $currency ); -
apply_filters( 'sunshine_currency_decimal_count', $decimals, $currency ); -
apply_filters( 'sunshine_currency_symbol', $currency_symbol ); -
apply_filters( 'sunshine_current_url', $url ); -
apply_filters( 'sunshine_customer_get_galleries_args', $args ); -
apply_filters( 'sunshine_customer_get_gallery_ids', $gallery_ids, $this ); -
do_action( 'sunshine_customer_recalculate_stats', $this ); -
apply_filters( 'sunshine_customer_role', 'sunshine_customer' ); -
do_action( 'sunshine_customer_save', $post_data, $customer ); -
do_action( "sunshine_customer_tab_{$tab}", $customer ); -
apply_filters( 'sunshine_customer_tabs', $tabs ); -
do_action( "sunshine_customers_table_column_{$column_name}", $customer ); -
do_action( 'sunshine_customers_table_column_activity', $customer ); -
apply_filters( 'sunshine_customers_table_columns', $table_columns ); -
apply_filters( 'sunshine_customers_table_sortable_columns', $sortable_columns ); -
apply_filters( 'sunshine_dashboard_recent_orders_count', 10 ); -
apply_filters( 'sunshine_default_address_fields', $fields ); -
apply_filters( "sunshine_delivery_method_{$this->id}_description", $description ); -
apply_filters( "sunshine_delivery_method_{$this->id}_name", $name ); -
apply_filters( "sunshine_delivery_method_{$this->id}_taxed_at_store", $this->taxed_at_store, $this ); -
apply_filters( 'sunshine_delivery_methods', array() ); -
apply_filters( 'sunshine_discount_allowed_categories', $this->meta['allowed_categories'], $this ); -
apply_filters( 'sunshine_discount_allowed_galleries', $galleries, $this ); -
apply_filters( 'sunshine_discount_allowed_products', $this->meta['allowed_products'], $this ); -
apply_filters( 'sunshine_discount_amount', floatval( $this->meta['discount_amount'] ), $this ); -
apply_filters( 'sunshine_discount_apply_to_shipping', ( $this->meta['apply_to_shipping'] == 1 ) ? true : false, $this ); -
apply_filters( 'sunshine_discount_auto', $this->meta['auto'], $this ); -
apply_filters( 'sunshine_discount_can_discount_item', $discountable, $item, $this ); -
apply_filters( 'sunshine_discount_disallowed_categories', $this->meta['disallowed_categories'], $this ); -
apply_filters( 'sunshine_discount_disallowed_galleries', $galleries, $this ); -
apply_filters( 'sunshine_discount_disallowed_products', $this->meta['disallowed_products'], $this ); -
apply_filters( 'sunshine_discount_end_date', $this->meta['end_date'], $this ); -
apply_filters( 'sunshine_discount_free_shipping', $this->meta['free_shipping'], $this ); -
apply_filters( 'sunshine_discount_max_product_quantity', $this->meta['max_product_quantity'], $this ); -
apply_filters( 'sunshine_discount_max_uses', intval( $this->meta['max_uses'] ), $this ); -
apply_filters( 'sunshine_discount_max_uses_per_person', intval( $this->meta['max_uses_per_person'] ), $this ); -
apply_filters( 'sunshine_discount_min_amount', floatval( $this->meta['min_amount'] ), $this ); -
apply_filters( 'sunshine_discount_min_quantity', intval( $this->meta['min_quantity'] ), $this ); -
apply_filters( 'sunshine_discount_required_products', $this->meta['required_products'], $this ); -
apply_filters( 'sunshine_discount_solo', ( $this->meta['solo'] == 1 ) ? true : false, $this ); -
apply_filters( 'sunshine_discount_start_date', $this->meta['start_date'], $this ); -
apply_filters( 'sunshine_discount_type', $this->meta['discount_type'], $this ); -
apply_filters( 'sunshine_discount_use_count', intval( $this->meta['use_count'] ), $this ); -
apply_filters( 'sunshine_email_attachments', array(), $this->id, $this->args ); -
apply_filters( 'sunshine_email_headers', $headers, $this ); -
do_action( 'sunshine_email_order_receipt', $order ); -
do_action( 'sunshine_email_order_receipt_actions', $order ); -
do_action( 'sunshine_email_order_status', $order ); -
do_action( 'sunshine_email_order_status_actions', $order ); -
do_action( 'sunshine_email_order_status_after_order_notes', $order ); -
apply_filters( 'sunshine_emails', $methods_to_load ); -
do_action( 'sunshine_empty_cart' ); -
do_action( 'sunshine_enqueue_scripts' ); -
apply_filters( 'sunshine_expired_addons', array() ); -
do_action( 'sunshine_favorites' ); -
apply_filters( 'sunshine_favorites_file_names_separator', ', ', $file_names ); -
apply_filters( 'sunshine_form_description_allowed_html', $allowed ); -
do_action( "sunshine_form_field_{$field['type']}_display" ); -
apply_filters( "sunshine_form_field_extra_{$field['id']}", '' ); -
apply_filters( 'sunshine_form_field_required_symbol', '*' ); -
apply_filters( 'sunshine_format_amount', $formatted, $amount, $decimals, $decimal_sep, $thousands_sep ); -
apply_filters( 'sunshine_format_amount_decimals', $decimals ? 2 : 0, $amount ); -
apply_filters( 'sunshine_formatted_address_force_country_display', false ); -
apply_filters( 'sunshine_formatted_address_replacements', array( '{first_name}' => $args['first_name'], '{last_name}' => $args['last_name'], '{name}' => sprintf( _x( '%1$s %2$s', 'full name', 'sunshine-photo-cart' ), $args['first_name'], $args['last_name'] ), '{address1}' => $args['address1'], '{address2}' => $args['address2'], '{city}' => $args['city'], '{state}' => $full_state, '{postcode}' => $args['postcode'], '{country}' => $full_country, '{first... ); -
do_action( 'sunshine_galleries' ); -
apply_filters( 'sunshine_galleries_optimized_query', true, $args, $conditional_method ); -
apply_filters( 'sunshine_gallery_classes', $classes, $this ); -
do_action( 'sunshine_gallery_email', $email, $gallery_id ); -
do_action( 'sunshine_gallery_email_after', $gallery ); -
do_action( 'sunshine_gallery_email_before', $gallery ); -
apply_filters( 'sunshine_gallery_expiration_notice', sprintf( __( 'This gallery is set to expire on <strong>%s</strong>', 'sunshine-photo-cart' ), date_i18n( get_option( 'date_format' ) . ' @ ' . get_option( 'time_format' ), $end_date ) ) ); -
apply_filters( 'sunshine_gallery_get_images_args', $args, $this->get_id() ); -
apply_filters( 'sunshine_gallery_image_html', $image_html, $image->get_id(), $image->get_image_url() ); -
apply_filters( 'sunshine_gallery_image_ids', $image_ids, $this ); -
apply_filters( 'sunshine_gallery_only_image_sizes', array( 'sunshine-thumbnail', 'sunshine-large' ) ); -
do_action( 'sunshine_gallery_password_after', $gallery ); -
do_action( 'sunshine_gallery_password_before', $gallery ); -
apply_filters( 'sunshine_gallery_post_type_args', $args ); -
apply_filters( 'sunshine_gallery_ready_quiet_period', 5 * MINUTE_IN_SECONDS ); -
do_action( 'sunshine_gallery_terms_after', $gallery ); -
do_action( 'sunshine_gallery_terms_agreed', $agreement, $gallery ); -
do_action( 'sunshine_gallery_terms_before', $gallery ); -
apply_filters( 'sunshine_gallery_visibility_meta_keys', array( 'status', 'private_users', 'access_type', 'end_date', 'terms' ) ); -
apply_filters( 'sunshine_generate_order_key', 'order_' . $key ); -
apply_filters( 'sunshine_get_cart_total', $total, $this ); -
apply_filters( 'sunshine_get_country_locale', array( 'AE' => array( 'postcode' => array( 'required' => false, 'hidden' => true, ), 'state' => array( 'required' => false, ), ), 'AF' => array( 'state' => array( 'required' => false, 'hidden' => true, ), ), 'AL' => array( 'state' => array( 'name' => __( 'County', 'sunshine-photo-cart' ), ), ), 'AO' => array( 'postcode' => array( 'required' => false, 'hidden' => true, ), 'state' => array( 'name... ); -
apply_filters( 'sunshine_get_country_locale_default', $this->get_default_address_fields() ); -
apply_filters( 'sunshine_get_galleries_args', $args, $conditional_method ); -
apply_filters( 'sunshine_get_order_args', $args ); -
apply_filters( 'sunshine_get_page', $page_id, $page ); -
apply_filters( 'sunshine_get_page_for_post_id', false, (int) $page, $this->pages ); -
apply_filters( 'sunshine_get_product', $product, $price_level_id ); -
apply_filters( 'sunshine_get_product_args', $args ); -
do_action( 'sunshine_head' ); -
apply_filters( 'sunshine_header_links', array() ); -
apply_filters( 'sunshine_image_can_purchase', $can_purchase, $this ); -
apply_filters( 'sunshine_image_class', $classes, $image_id ); -
apply_filters( 'sunshine_image_large_size', 'sunshine-large' ); -
apply_filters( 'sunshine_image_name', $name, $this ); -
apply_filters( 'sunshine_image_next_label', __( 'Next', 'sunshine-photo-cart' ) . ' »' ); -
apply_filters( 'sunshine_image_output', $output, $this, $size ); -
apply_filters( 'sunshine_image_placeholder_url', SUNSHINE_PHOTO_CART_URL . '/assets/images/missing-image.png' ); -
apply_filters( 'sunshine_image_previous_label', '« ' . __( 'Previous', 'sunshine-photo-cart' ) ); -
apply_filters( 'sunshine_image_status', $status, $image ); -
do_action( 'sunshine_image_thumbnail', $image ); -
apply_filters( 'sunshine_images_in_folder', $images, $folder ); -
apply_filters( 'sunshine_import_directory', $upload_dir['basedir'] . '/sunshine/upload' ); -
do_action( 'sunshine_invoice_after_address', $order ); -
do_action( 'sunshine_invoice_after_basics', $order ); -
do_action( 'sunshine_invoice_after_cart_items', $order ); -
do_action( 'sunshine_invoice_after_data', $order ); -
do_action( 'sunshine_invoice_after_header', $order ); -
do_action( 'sunshine_invoice_after_order_status', $order ); -
do_action( 'sunshine_invoice_after_order_totals', $order ); -
do_action( 'sunshine_invoice_after_page_header', $order ); -
apply_filters( 'sunshine_invoice_file', sprintf( __( 'invoice-%s', 'sunshine-photo-cart' ), $order->get_order_number() ), $order ); -
apply_filters( 'sunshine_lab_file_url_ttl', $ttl, $attachment_id ); -
apply_filters( 'sunshine_license_problem_addons', array() ); -
do_action( 'sunshine_login_form_before_submit' ); -
apply_filters( 'sunshine_login_url', wp_login_url( sunshine_current_url( false ) ) ); -
do_action( 'sunshine_logout' ); -
apply_filters( 'sunshine_logout_redirect', sunshine_get_page_url( 'home' ) ); -
do_action( 'sunshine_lost_password_form_before_submit' ); -
apply_filters( 'sunshine_lost_password_validation', '', $_POST ); -
apply_filters( "sunshine_meta_{$field['id']}_validate", $meta_value ); -
do_action( "sunshine_meta_{$field['type']}_display", $field, $meta_value ); -
apply_filters( "sunshine_meta_{$key}_validate", $value ); -
apply_filters( "sunshine_meta_{$type}_sanitize", $value ); -
do_action( "sunshine_modal_display_{$hook}" ); -
do_action( 'sunshine_multi_image_select_images_item', $image_ids, $hash, $key ); -
apply_filters( 'sunshine_new_customer_username', $username, $email ); -
apply_filters( 'sunshine_new_order_title', sprintf( __( 'Order #%s', 'sunshine-photo-cart' ), $order_number ) ); -
apply_filters( 'sunshine_no_galleries', __( 'Sorry, no galleries have been setup yet', 'sunshine-photo-cart' ) ); -
apply_filters( 'sunshine_open_graph_gallery_title', $this->current_gallery->get_name() . ' by ' . get_bloginfo( 'name' ) ); -
apply_filters( 'sunshine_open_graph_image_title', $this->current_image->get_name() . ' by ' . get_bloginfo( 'name' ) ); -
apply_filters( 'sunshine_options', $settings ); -
apply_filters( 'sunshine_options_checkout', $checkout_fields ); -
apply_filters( 'sunshine_options_design', $design_fields ); -
apply_filters( 'sunshine_options_email', $email_fields ); -
apply_filters( "sunshine_options_email_{$id}", array() ); -
apply_filters( 'sunshine_options_extra', $settings ); -
apply_filters( 'sunshine_options_galleries', $galleries_fields ); -
apply_filters( 'sunshine_options_general', $general_fields ); -
apply_filters( 'sunshine_options_integrations', $integration_fields ); -
apply_filters( 'sunshine_options_licenses', $license_fields ); -
apply_filters( 'sunshine_options_pages', $pages_fields ); -
apply_filters( "sunshine_options_payment_method_{$id}", array() ); -
apply_filters( 'sunshine_options_payment_methods', $payment_fields ); -
apply_filters( 'sunshine_options_privacy', $privacy_fields ); -
apply_filters( 'sunshine_options_shipping', $shipping_fields ); -
apply_filters( "sunshine_options_shipping_method_{$shipping_method['id']}", array(), $instance_id ); -
apply_filters( 'sunshine_options_taxes', $tax_fields ); -
do_action( 'sunshine_order' ); -
apply_filters( 'sunshine_order_actions', $actions, $post_id ); -
do_action( 'sunshine_order_actions_end', $order ); -
do_action( 'sunshine_order_actions_options', $order ); -
do_action( 'sunshine_order_actions_start', $order ); -
do_action( 'sunshine_order_add_comment', $comment, intval( $_POST['order_id'] ) ); -
apply_filters( 'sunshine_order_clear_cart', true, $order ); -
do_action( 'sunshine_order_create', $this ); -
apply_filters( 'sunshine_order_invoice_permalink', wp_nonce_url( $this->get_permalink(), 'order_invoice_' . $this->get_id(), 'order_invoice' ) ); -
do_action( 'sunshine_order_item_extra', $this ); -
apply_filters( 'sunshine_order_item_file_names', $file_names, $this ); -
apply_filters( 'sunshine_order_item_image_name', $image_name, $this ); -
apply_filters( 'sunshine_order_item_image_url', $image_url, $this ); -
do_action( 'sunshine_order_log_added', $comment_id, $this ); -
do_action( 'sunshine_order_meta_boxes' ); -
apply_filters( 'sunshine_order_name', $this->name, $this ); -
apply_filters( 'sunshine_order_note', array( 'comment_post_ID' => $this->get_id(), 'comment_author' => $comment_author, 'comment_author_email' => $comment_author_email, 'comment_author_url' => '', 'comment_content' => $message, 'comment_agent' => 'SunshinePhotoCart', 'comment_type' => 'sunshine_order_log', 'comment_parent' => 0, 'comment_approved' => 1, ), $this->get_id() ); -
do_action( 'sunshine_order_payment_problem', $order, $reason, $payment_method_id, $type ); -
sunshine_order_process_action_{sanitize_key($_POST['sunshine_order_action'])}
action Copy link Customise this hookdo_action( "sunshine_order_process_action_{sanitize_key($_POST['sunshine_order_action'])}", $post_id ); -
apply_filters( 'sunshine_order_profit_payment_fees', array(), $this ); -
do_action( 'sunshine_order_received' ); -
do_action( 'sunshine_order_refund', $this, $amount, $reason ); -
do_action( 'sunshine_order_status_change', $new_status, $this, $current_status, $by_hand ); -
sunshine_order_status_change_{$current_status}_to_{$new_status}
action Copy link Customise this hookdo_action( "sunshine_order_status_change_{$current_status}_to_{$new_status}", $this ); -
do_action( "sunshine_order_status_change_{$new_status}", $this ); -
apply_filters( 'sunshine_order_status_description', $this->description, $this ); -
apply_filters( 'sunshine_order_status_name', $this->name, $this ); -
do_action( "sunshine_order_status_set_to_{$new_status}", $this ); -
apply_filters( 'sunshine_order_statuses_needs_payment', array( 'pending' ) ); -
do_action( 'sunshine_order_update', $this ); -
apply_filters( 'sunshine_page_title', SPC()->frontend->get_page_title() ); -
apply_filters( 'sunshine_page_translation_ids', array( (int) $configured_id ), (int) $configured_id ); -
apply_filters( 'sunshine_pages', $pages ); -
apply_filters( 'sunshine_payment_method_minimum_amount', $this->get_gateway_minimum_amount( $currency ), $currency, $this ); -
apply_filters( 'sunshine_payment_methods', $methods_to_load ); -
apply_filters( 'sunshine_paypal_args', $paypal_args ); -
apply_filters( 'sunshine_paypal_order_args', $order_args ); -
apply_filters( 'sunshine_personal_pages', array( 'account', 'cart', 'checkout', 'favorites' ) ); -
apply_filters( 'sunshine_post_types', $this->post_types ); -
do_action( "sunshine_pre_delete_{$this->post_type}", $this ); -
do_action( "sunshine_pre_delete_{$this->taxonomy}", $this ); -
do_action( "sunshine_pre_update_{$this->taxonomy}", $this ); -
apply_filters( 'sunshine_prefix', 'sunshine_' ); -
apply_filters( 'sunshine_price_level_name', $this->name, $this ); -
apply_filters( 'sunshine_price_levels', $price_levels ); -
apply_filters( "sunshine_product_{$this->product_type}_needs_delivery", true, $this ); -
apply_filters( "sunshine_product_{$this->product_type}_needs_shipping", $needs_shipping, $this ); -
apply_filters( 'sunshine_product_allow_store_image_select', true, $this ); -
apply_filters( 'sunshine_product_can_purchase', $can_purchase, $this ); -
apply_filters( 'sunshine_product_class', $classes, $this ); -
apply_filters( 'sunshine_product_details', $result, $product, $image ); -
do_action( 'sunshine_product_details_after_price', $product, $image ); -
do_action( 'sunshine_product_details_before_price', $product, $image ); -
apply_filters( 'sunshine_product_display_name', $display_name, $this ); -
apply_filters( 'sunshine_product_is_taxable', $taxable, $this ); -
apply_filters( 'sunshine_product_max_qty', $this->get_meta_value( 'max_qty' ), $this ); -
apply_filters( 'sunshine_product_min_qty', $this->get_meta_value( 'min_qty' ), $this ); -
apply_filters( 'sunshine_product_option_name', $this->name, $this ); -
apply_filters( 'sunshine_product_price', $price, $this ); -
apply_filters( 'sunshine_product_price_formatted', $price_formatted, $this ); -
apply_filters( 'sunshine_product_price_level', $this->price_level, $this ); -
apply_filters( 'sunshine_product_price_level_args', $args ); -
apply_filters( 'sunshine_product_shipping', $this->meta['shipping'][ $this->price_level ], $this ); -
apply_filters( 'sunshine_product_sources', $source_galleries, $product, $gallery ); -
apply_filters( 'sunshine_product_types', array( 'print' => array( 'name' => __( 'Print', 'sunshine-photo-cart' ), 'image' => 1, 'store' => 1, ), ) ); -
apply_filters( 'sunshine_profile_fields', $fields ); -
apply_filters( 'sunshine_rate_limit', $limit, $action ); -
do_action( 'sunshine_regenerate_image', $image_id ); -
do_action( "sunshine_report_{$report}", $current_duration, $current_after, $current_before ); -
apply_filters( 'sunshine_reports', $available_reports ); -
apply_filters( 'sunshine_reports_date_formats', array( 'day' => array( 'label' => __( 'Day', 'sunshine-photo-cart' ), 'after' => $today, 'before' => $today, ), 'week' => array( 'label' => __( 'Week', 'sunshine-photo-cart' ), 'after' => wp_date( 'Y-m-d', strtotime( '-7 days' ) ), 'before' => $today, ), 'month' => array( 'label' => __( 'Month', 'sunshine-photo-cart' ), 'after' => wp_date( 'Y-m-d', strtotime( '-1 months' ) ), 'before' => $today... ); -
apply_filters( 'sunshine_required_notice', '<span class="sunshine--required">* ' . esc_html__( 'Required', 'sunshine-photo-cart' ) . '</span>' ); -
do_action( 'sunshine_reset_password', $user ); -
apply_filters( 'sunshine_sanitize_amount', $amount ); -
apply_filters( 'sunshine_sanitize_amount_decimals', 2, $amount ); -
do_action( "sunshine_save_{$post->post_type}_meta", $post_id, $post ); -
do_action( 'sunshine_search', $this->search_term, $this->search_results ); -
apply_filters( 'sunshine_search_args', $args ); -
apply_filters( 'sunshine_search_gallery_args', $gallery_args ); -
do_action( 'sunshine_search_results' ); -
do_action( 'sunshine_send_summary' ); -
do_action( 'sunshine_session_cleanup' ); -
apply_filters( 'sunshine_session_destroy_when_empty', true ); -
apply_filters( 'sunshine_session_expiration', DAY_IN_SECONDS * 7 ); -
apply_filters( 'sunshine_session_lazy_cookie', true ); -
apply_filters( 'sunshine_session_start_uri_blacklist', array( 'feed', 'feed/rss', 'feed/rss2', 'feed/rdf', 'feed/atom', 'comments/feed', ) ); -
apply_filters( 'sunshine_set_default_product_category', $default_category->get_id(), $post_id ); -
do_action( 'sunshine_set_discounts' ); -
do_action( 'sunshine_set_payment_method', $this->payment_method ); -
apply_filters( 'sunshine_shipping_flat_rate_allowed', true, $this ); -
apply_filters( 'sunshine_shipping_free_allowed', $allowed, $this ); -
do_action( 'sunshine_shipping_init' ); -
apply_filters( 'sunshine_shipping_local_allowed', $allowed, $this ); -
apply_filters( 'sunshine_shipping_method_allowed', true, $this->id, $this->instance_id ); -
apply_filters( 'sunshine_shipping_options_default', $fields, $this->id, $instance_id ); -
apply_filters( 'sunshine_shipping_pickup_allowed', $allowed, $this ); -
apply_filters( 'sunshine_shortcode_gallery_password_form', $form ); -
apply_filters( 'sunshine_shortcode_search_form', $form ); -
apply_filters( 'sunshine_shortcodes', $default_shortcodes ); -
do_action( 'sunshine_signup_fields' ); -
do_action( 'sunshine_signup_form_before_submit' ); -
apply_filters( 'sunshine_signup_validation', '', $_POST ); -
do_action( 'sunshine_single_gallery' ); -
do_action( 'sunshine_single_image' ); -
apply_filters( 'sunshine_square_application_fee_percent', 5 ); -
apply_filters( 'sunshine_square_idempotency_key', sha1( get_option( 'siteurl' ) . $key_input ) . ( $append_key_input ? ':' . $key_input : '' ) ); -
apply_filters( 'sunshine_square_oauth_client_id', ( 'live' === $mode ) ? 'sq0idp-19QAyk7l68V7ymxc2Fl9EQ' : 'sandbox-sq0idb-aNDJReIdhctf2o3OZA0FTA', $mode ); -
apply_filters( 'sunshine_start_session', $start_session ); -
apply_filters( 'sunshine_states', array( 'AF' => array(), 'AL' => array( 'AL-01' => __( 'Berat', 'sunshine-photo-cart' ), 'AL-09' => __( 'Dibër', 'sunshine-photo-cart' ), 'AL-02' => __( 'Durrës', 'sunshine-photo-cart' ), 'AL-03' => __( 'Elbasan', 'sunshine-photo-cart' ), 'AL-04' => __( 'Fier', 'sunshine-photo-cart' ), 'AL-05' => __( 'Gjirokastër', 'sunshine-photo-cart' ), 'AL-06' => __( 'Korçë', 'sunshine-photo-cart' ), 'A... ); -
do_action( 'sunshine_store_product_details_after_price', $product ); -
do_action( 'sunshine_store_product_details_before_price', $product ); -
apply_filters( 'sunshine_store_product_item_link', '', $product, $gallery ); -
apply_filters( 'sunshine_stripe_application_fee_percent', 5 ); -
apply_filters( 'sunshine_stripe_checkout_session_args', $args, $order ); -
apply_filters( 'sunshine_stripe_payment_intent_args', $args, $order ); -
apply_filters( 'sunshine_tax_label', $name ); -
apply_filters( 'sunshine_tax_name_suggestions', $suggestions ); -
apply_filters( 'sunshine_tax_rates', SPC()->get_option( 'tax_rates' ) ); -
do_action( "sunshine_template_after_{$template}", $args ); -
do_action( "sunshine_template_before_{$template}", $args ); -
apply_filters( 'sunshine_tools', array() ); -
do_action( 'sunshine_uninstall' ); -
do_action( "sunshine_update_{$version}" ); -
apply_filters( "sunshine_validate_{$field['type']}", false, $value, $field ); -
do_action( 'sunshine_view_gallery', $this->current_gallery ); -
do_action( 'sunshine_view_image', $this->current_image );
Generated from Sunshine Photo Cart's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: