Hooks reference

Every action and filter the plugins provide, with their arguments. Filters unless marked (action).

FreePro

Lifecycle

HookArgumentsUse
siteryn_ssm_loaded (action)$pluginFree booted with its requirements met
siteryn_ssm_upgrade (action)$installed_version, $current_versionOn init when the stored version differs
siteryn_ssm_activated · siteryn_ssm_deactivated (action)-Plugin activation and deactivation
siteryn_ssm_subscription_created (action)$subscription, $orderA paid order created a subscription
siteryn_ssm_subscription_status_changed (action)$subscription, $from, $toAfter a status change was saved
siteryn_ssm_renewal_order_created (action)$order, $subscriptionA renewal order was created and the subscription put on hold; a gateway with automatic payments charges it here
siteryn_ssm_renewal_payment_complete (action)$subscription, $orderA paid renewal was applied
siteryn_ssm_processed_subscriptions (action)$resultAfter each hourly run (renewed, cancelled, expired counts)

Subscriptions and renewals

HookArgumentsUse
siteryn_ssm_subscription_statuses$statusesStatus key => label; keys lowercase, at most 16 characters; Free's statuses can't be removed
siteryn_ssm_can_transition_status$allowed, $from, $toAllow or block a status change
siteryn_ssm_supported_product_types$typesProduct types that can be subscriptions (default simple)
siteryn_ssm_renewal_order$order, $subscriptionChange a renewal order before its totals are calculated and it is saved
siteryn_ssm_cancelling_order_statuses$statuses, $orderOrder statuses that cancel the subscription (default cancelled, refunded)
siteryn_ssm_batch_size$sizeSubscriptions per step of the hourly run (1–100, default 25)

My Account and display

HookArgumentsUse
siteryn_ssm_account_subscriptions$subscriptions, $customer_id, $pageThe subscriptions on the current list page
siteryn_ssm_user_can_view_subscription$can, $subscription, $user_idWho may view a subscription (default: its customer)
siteryn_ssm_subscription_actions$actions, $subscription, $contextCustomer buttons, each array( 'url', 'label', 'primary'? ); $context list or view
siteryn_ssm_subscription_detail_rows$rows, $subscriptionDetail rows on a subscription's page, array( 'label', 'html' ) with escaped HTML
siteryn_ssm_subscription_number$number, $subscriptionThe number shown to customers (default #123)
siteryn_ssm_subscription_view_url$url, $subscriptionA subscription's My Account URL
siteryn_ssm_reserved_slugs$reservedSlugs the My Account address may not use
siteryn_ssm_load_assets$neededWhether the storefront stylesheet loads
siteryn_ssm_inline_css$css, $settingsInline status color CSS
siteryn_ssm_before_account_subscriptions · siteryn_ssm_after_account_subscriptions (action)$subscriptionsAround the My Account list
siteryn_ssm_before_subscription_details · siteryn_ssm_after_subscription_details (action)$subscriptionAround a subscription's page (Pro prints its confirmation panels here)
siteryn_ssm_locate_template$template, $template_nameThe final template path
siteryn_ssm_before_template · siteryn_ssm_after_template (action)$template_name, $argsAround every template
siteryn_ssm_order_meta_box_after (action)$subscription, $orderAfter each subscription in the admin order screen's Subscriptions box

Settings screen

HookArgumentsUse
siteryn_ssm_settings_get_all$settingsResolved Free settings for this request
siteryn_ssm_settings_sections$sectionsTabs: key => label, option_group?, option_name?, render_callback?, has_save_button?
siteryn_ssm_settings_fields$fieldsField schema
siteryn_ssm_settings_reset_actions$actionsOption name => admin-post reset action
siteryn_ssm_settings_save_redirect$redirect, $option_nameBlock a save and send the admin to another tab
siteryn_ssm_settings_preview_sections$sectionsTabs with the Live Preview (default display)
siteryn_ssm_settings_nav_groups$groupsLeft menu groups (settings, pro, system)
siteryn_ssm_settings_nav_group · siteryn_ssm_settings_nav_visible · siteryn_ssm_settings_nav_badge · siteryn_ssm_settings_nav_icon · siteryn_ssm_settings_nav_sublabel · siteryn_ssm_settings_description$value, $sectionGroup, visibility, badge, Dashicon, sublabel and description of a tab
siteryn_ssm_settings_reset (action)$sectionAfter Free settings were reset ('' for all)
siteryn_ssm_settings_panel_top (action)$section, $active_sectionTop of every tab panel
siteryn_ssm_settings_main_after (action)$sectionAfter a tab's form
siteryn_ssm_settings_sidebar (action)$sectionGeneral tab sidebar (Pro adds the dashboard card)
siteryn_ssm_system_status_cards$cardsSystem Status cards while Pro is active
siteryn_dashboard_plugins$pluginsPlugin cards on the shared Siteryn Welcome page
siteryn_deactivation_feedback_endpoint$urlWhere deactivation survey answers are posted (shared by Siteryn plugins)

Pro

HookArgumentsUse
siteryn_ssm_pro_loaded (action)$pluginPro is running (licensed or not)
siteryn_ssm_pro_upgrade (action)$installed, $currentPro version changed
siteryn_ssm_pro_deactivate (action)-Pro is being deactivated (Paused subscriptions return to Active)
siteryn_ssm_pro_license_activated (action)$outcomeAfter an activation attempt
siteryn_ssm_pro_license_deactivated (action)$doneAfter deactivation
siteryn_ssm_pro_license_active$activeWhether Pro features are on
siteryn_ssm_pro_payment_methods$methods, $subscriptionGateway id => title offered for renewals
siteryn_ssm_pro_payment_method_changed (action)$subscription, $old, $methodA customer chose a new renewal payment method (gateway ids)
siteryn_ssm_pro_switch_options$options, $subscriptionProduct id => product a subscription may switch to
siteryn_ssm_pro_plan_switched (action)$subscription, $old_id, $new_idAfter a plan switch (product ids)
siteryn_ssm_pro_recurring_action (action)$subscription, $actionAfter renew_now, skip_next or resend_invoice
siteryn_ssm_pro_processed (action)$resultAfter Pro's hourly work (resumed, cancelled, reminded)
siteryn_ssm_pro_send_status_email (action)$subscription, $from, $toTriggers the status and cancellation emails
siteryn_ssm_pro_send_renewal_reminder (action)$subscriptionTriggers the renewal reminder email
siteryn_ssm_pro_detail_row_catalog$rowsDetails listed in the Details Builder (key => label)
siteryn_ssm_pro_settings_fields$fieldsPro field schema
siteryn_ssm_pro_settings_get_all$settingsResolved Pro settings

Example

// Add a "Delivery day" row to every subscription page.
add_filter( 'siteryn_ssm_subscription_detail_rows', function ( $rows, $subscription ) {
	$rows['delivery'] = array(
		'label' => __( 'Delivery day', 'my-theme' ),
		'html'  => esc_html__( 'First Monday of the month', 'my-theme' ),
	);
	return $rows;
}, 10, 2 );