Smart Manager 9.0.0 has 22 actions and 127 filters, read directly from its source code on Nov 17, 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 Smart Manager fires an action
add_action( 'smart_manager_enqueue_scripts', function() {
// Your code runs here.
}, 10, 1 );
// Change a value Smart Manager is about to use
add_filter( 'sa_background_process_heartbeat_params', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );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
-
apply_filters( "{$this->plugin_sku}_{$this->dashboard_key}{$src}_color_codes", $color_codes ); -
apply_filters( "sa_{$this->plugin_sku}_validate_current_page", true ); -
apply_filters( "{$plugin_prefix}_batch_email_template", constant( strtoupper( $plugin_prefix ) . '_PLUGIN_DIR_PATH' ) . '/templates/emails/sync-wsm-stock-log-data.php' ); -
apply_filters( "{$this->identifier}_batch_default_time_limit", 20 ); -
apply_filters( 'sa_background_process_heartbeat_params', array() ); -
sa_param_for_ajax_url
filterapply_filters( 'sa_param_for_ajax_url', '' ); -
apply_filters( 'sm_decimal_separator_for_export', wc_get_price_decimal_separator(), array( 'col' => 'postmeta_meta_key__regular_price', 'data' => $data_model['items'][$key] ) ); -
apply_filters( 'sm_search_format_query_terms_col_name', $search_params['search_col'], $search_params ); -
do_action( 'smart_manager_enqueue_scripts' ); -
apply_filters( "{$this->identifier}_batch_lock_duration", 10 * MINUTE_IN_SECONDS ); -
apply_filters( "{$this->identifier}_batch_max_size", 200 ); -
apply_filters( "{$this->identifier}_batch_time_exceeded", $return ); -
do_action( "{$this->plugin_sku}_admin_init" ); -
do_action( "{$this->plugin_sku}_dashboard_model_saved" ); -
apply_filters( "{$this->plugin_sku}_default_col_widths", array( $this->plugin_sku . '.image' => 50, 'numeric' => 50, 'checkbox' => 30, $this->plugin_sku . '.datetime' => 105, 'text' => 130, $this->plugin_sku . '.longstring' => 150, $this->plugin_sku . '.serialized' => 200, ) ); -
apply_filters( "{$this->plugin_sku}_default_dashboard_model", $this->default_store_model ); -
apply_filters( "{$this->plugin_sku}_default_dashboard_model_postmeta_cols", $results_postmeta_col ); -
apply_filters( "{$this->plugin_sku}_get_col_and_store_model_transient_data", array( 'column_model_transient' => $column_model_transient, 'store_model_transient' => $store_model_transient, ) ); -
apply_filters( "{$this->plugin_sku}_get_col_model_transient_data", array( 'search_params' => $search_params, 'column_model_transient' => $column_model_transient, ) ); -
apply_filters( "{$this->plugin_sku}_get_store_model_data", $store_model ); -
apply_filters( "{$this->plugin_sku}_load_default_store_model", true ); -
apply_filters( "{$this->plugin_sku}_map_column_for_stored_transient", array( 'column_model_transient' => $column_model_transient, 'store_model' => $store_model, ) ); -
apply_filters( "{$this->plugin_sku}_modify_store_model_for_trash_status", $store_model ); -
apply_filters( "{$this->plugin_sku}_modify_store_model_search_params", $store_model, $search_params ); -
apply_filters( "{$this->plugin_sku}_port_store_model_new_mapping", $store_model, $old_col_model ); -
apply_filters( "{$this->plugin_sku}_port_store_model_old_structure", array( 'store_model_transient' => $store_model_transient, 'old_col_model' => $old_col_model, ) ); -
apply_filters( "{$this->plugin_sku}_unused_post_statuses", $unused_post_statuses ); -
plugin_locale
filterapply_filters( 'plugin_locale', get_locale(), $text_domain ); -
do_action( "sa_{$plugin_sku}_manager_include_necessary_background_files", array_merge( $params, array( 'plugin_dir' => $plugin_dir ) ) ); -
apply_filters( "sa_{$this->plugin_sku}_can_apply_dashboard_model_filter", true ); -
apply_filters( "sa_{$this->plugin_sku}_check_dashboard_access", array( 'has_access' => true, 'message' => '' ), $this->dashboard_key ); -
apply_filters( "sa_{$this->plugin_sku}_dashboard_model", $store_model, $store_model_transient ); -
apply_filters( "sa_{$this->plugin_sku}_manager_common_core_path", $this->plugin_dir_path . '/common-core/classes/', $this->plugin_dir_path ); -
do_action( "sa_{$this->plugin_sku}_manager_func_handler", array( 'handler_obj' => $sa_manager_handler['handler_obj'], 'func_nm' => $func_nm, 'req_params' => $req_params, ) ); -
apply_filters( "sa_{$this->plugin_sku}_manager_handler", array( 'handler_obj' => $handler_obj, 'req_params' => $req_params, ), $req_params ); -
apply_filters( "sa_{$this->plugin_sku}_manager_request_handler_allowed_dir_path", array() ); -
do_action( 'sa_background_process_after_admin_notice_heading', $batch_params ); -
sa_common_module_available
filterapply_filters( 'sa_common_module_available', false, $this->dashboard_key ); -
sa_get_supported_post_types
filterapply_filters( 'sa_get_supported_post_types', array( 'product' ) ); -
sa_handle_batch_process
actiondo_action( 'sa_handle_batch_process', $params ); -
apply_filters( 'sa_is_callback_file_includable', true, array( 'process_key' => ( ! empty( $params['args']['batch_params']['process_key'] ) ) ? $params['args']['batch_params']['process_key'] : '', 'is_common' => true, ) ); -
do_action( 'sa_manager_after_background_process_complete', $this->identifier, $batch_params ); -
do_action( 'sa_manager_background_process_complete', $this->identifier ); -
sa_manager_dashboard_columns
filterapply_filters( 'sa_manager_dashboard_columns', $column, $src, $visible_columns, $dashboard_model_saved ); -
do_action( 'sa_port_initial_process_option', $this->identifier ); -
sa_register_batch_process
filterapply_filters( 'sa_register_batch_process', array() ); -
sa_sm_batch_export_threshold
filterapply_filters( 'sa_sm_batch_export_threshold', intval( get_option( 'sa_sm_batch_export_threshold', 50 ) ) ); -
sa_sm_before_settings_update
actiondo_action( 'sa_sm_before_settings_update', $settings ); -
sa_sm_escaped_html_columns
filterapply_filters( 'sa_sm_escaped_html_columns', array( 'posts_post_excerpt', 'posts_post_content' ) ); -
apply_filters( 'sa_sm_search_results_selected_ids', $selected_ids, $this->req_params ); -
apply_filters( 'sa_sm_skip_scheduled_export_cleanup', false ); -
apply_filters( 'sa_sm_use_get_results_in_select_entire_store_ids_query', false, $this->req_params ); -
apply_filters( "sm_{$args['curr_obj']->dashboard_key}_status_color_codes", $color_codes ); -
sm_accessible_views
filterapply_filters( 'sm_accessible_views', $this->sm_accessible_views ); -
sm_active_dashboards
filterapply_filters( 'sm_active_dashboards', self::$sm_dashboards_final ); -
apply_filters( 'sm_active_taxonomy_dashboards', self::$taxonomy_dashboards ); -
sm_admin_email
filterapply_filters( 'sm_admin_email', get_option( 'admin_email' ) ); -
do_action( 'sm_advanced_search_processing_complete' ); -
sm_after_update_post_term
actiondo_action( 'sm_after_update_post_term', $args ); -
apply_filters( 'sm_before_search_string_process', $rule_group ); -
apply_filters( 'sm_beta_background_entire_store_ids_from', $from, $this->req_params ); -
apply_filters( 'sm_beta_background_entire_store_ids_query', $wpdb->prepare( $select . $from . " " . $where . " AND 1=%d", 1) ); -
apply_filters( 'sm_beta_background_entire_store_ids_select', $select, $this->req_params ); -
apply_filters( 'sm_beta_background_entire_store_ids_where', $where, $this->req_params ); -
apply_filters( 'sm_beta_load_default_data_model', true ); -
apply_filters( 'sm_can_optimize_dashboard_speed', false ); -
sm_col_edit_disable_message
filterapply_filters( 'sm_col_edit_disable_message', _x( 'This column edit has been disabled. Please contact store administrator for enabling the same.', 'Column edit disable message', 'smart-manager-for-wp-e-commerce' ) ); -
sm_col_model_for_export
filterapply_filters( 'sm_col_model_for_export', $col_model, $this->req_params ); -
sm_data_model
filterapply_filters( 'sm_data_model', $data_model, $data_col_params ); -
apply_filters( 'sm_default_dashboard_model_meta_cols', $results ); -
sm_default_inline_update
filterapply_filters( 'sm_default_inline_update', $sm_default_inline_update ); -
apply_filters( 'sm_default_process_delete_records', true ); -
apply_filters( 'sm_default_process_delete_records_result', sizeof( $delete_ids ), array( 'ids' => $delete_ids, 'this' => $this ) ); -
sm_deleter
filterapply_filters( 'sm_deleter', null, array( 'source' => $this ) ); -
sm_disable_col_edit
filterapply_filters( 'sm_disable_col_edit', false ); -
apply_filters( 'sm_disable_trash_and_delete_permanently', false ); -
apply_filters( 'sm_filter_updated_edited_data', ( ! empty( $this->req_params['updatedEditedData'] ) ) ? json_decode( stripslashes( $this->req_params['updatedEditedData'] ), true ) : $edited_data ); -
sm_flat_table_col_titles
filterapply_filters( 'sm_flat_table_col_titles', array() ); -
sm_found_posts
actiondo_action( 'sm_found_posts', $query ); -
sm_from_tasks_query
filterapply_filters( 'sm_from_tasks_query', " FROM {$wpdb->prefix}sm_tasks" ); -
sm_generate_column_state
filterapply_filters( 'sm_generate_column_state', $column_model_transient, $store_model ); -
sm_get_custom_cols
filterapply_filters( 'sm_get_custom_cols', array( 'table_nm' => $args['table_nm'], 'col' => $field_nm, 'db_type' => ( ! empty( $result['Type'] ) ) ? $result['Type'] : '', 'editable' => ( in_array( $field_nm, $uneditable_cols ) ) ? false : true, 'visible_cols' => ( ! empty( $args['visible_columns'] ) ) ? $args['visible_columns'] : array(), 'name' => ( ! empty( $col_titles[ $args['table_nm'] ] ) && is_array( $col_titles[ $args['table_nm']... ); -
sm_groupby_tasks_cond
filterapply_filters( 'sm_groupby_tasks_cond', ' ' . $wpdb->prefix . 'sm_tasks.id ' ); -
apply_filters( 'sm_handle_post_processing_inline_update', true ); -
sm_ignored_cols
filterapply_filters( 'sm_ignored_cols', ( ( ! empty( $args['ignored_cols'] ) && is_array( $args['ignored_cols'] ) ) ? $args['ignored_cols'] : array() ) ); -
sm_inline_update_post
actiondo_action( 'sm_inline_update_post', $edited_data, $data_col_params ); -
sm_inline_update_post_data
filterapply_filters( 'sm_inline_update_post_data', array( 'posts_data' => $posts_updated_data, 'taxonomies' => $taxonomies, 'task_id' => ( ! empty( $this->task_id ) ) ? $this->task_id : 0, 'prev_postmeta_values' => $this->prev_postmeta_values ), $update_result ); -
sm_inline_update_pre
filterapply_filters( 'sm_inline_update_pre', $edited_data ); -
sm_join_tasks_cond
filterapply_filters( 'sm_join_tasks_cond', '' ); -
apply_filters( 'sm_map_column_state_to_store_model', $store_model, $column_model_transient ); -
sm_meta_col_model_args
filterapply_filters( 'sm_meta_col_model_args', array( 'table_nm' => $args['meta_table_nm'], 'col' => $meta_key, 'is_meta' => true, 'col_value' => $meta_value, 'visible_cols' => ( ! empty( $args['visible_columns'] ) ) ? $args['visible_columns'] : array(), 'hidden' => ( $meta_count > 5 ) ? true : false ) ); -
apply_filters( 'sm_modified_advanced_search_operators', $this->advanced_search_operators ); -
sm_orderby_tasks_cond
filterapply_filters( 'sm_orderby_tasks_cond', $wpdb->prefix . 'sm_tasks.id DESC ' ); -
sm_posts_fields
filterapply_filters( 'sm_posts_fields', "{$wpdb->prefix}posts.*", $sort_params ); -
sm_posts_groupby
filterapply_filters( 'sm_posts_groupby', "{$wpdb->prefix}posts.ID" ); -
sm_posts_join_paged
filterapply_filters( 'sm_posts_join_paged', '', $sort_params ); -
sm_posts_orderby
filterapply_filters( 'sm_posts_orderby', $order_by, array( 'sort_params' => $sort_params, 'start_offset' => $start_offset, 'limit' => $limit ) ); -
sm_posts_where
filterapply_filters( 'sm_posts_where', $where ); -
apply_filters( 'sm_process_inline_terms_update', array( 'update_column' => $update_column, 'term_ids' => array_map( 'absint', explode( ',', $value ) ), 'id' => $id, 'prev_val' => $prev_val, 'value' => $value, 'taxonomies' => $taxonomies, 'prev_postmeta_values' => $this->prev_postmeta_values, 'meta_data_edited' => $meta_data_edited, 'meta_keys_edited' => $meta_keys_edited, 'taxonomy_data_to_update' => $taxonomy_data_to_update, ) ); -
sm_required_cols
filterapply_filters( 'sm_required_cols', array() ); -
sm_search_{$meta_table}_cond
filterapply_filters( "sm_search_{$meta_table}_cond", $meta_cond, array_merge( $search_params, array( 'table_nm' => $params['rule']['table_name'], 'rule_val' => $params['rule']['value'] ) ) ); -
do_action( "sm_search_{$meta_table}_condition_complete", $results, $search_params, array( 'select' => $select, 'from' => $from, 'where' => $where ) ); -
apply_filters( "sm_search_{$meta_table}_condition_start", $cond, $search_params ); -
do_action( "sm_search_{$meta_table}_conditions_array_complete", $search_params ); -
sm_search_{$table_name}_cond
filterapply_filters( "sm_search_{$table_name}_cond", $cond, $search_params ); -
sm_search_{$table_nm}_cond
filterapply_filters( "sm_search_{$table_nm}_cond", $cond, array_merge( $search_params, array( 'table_nm' => $params['rule']['table_name'] ) ) ); -
do_action( "sm_search_{$table_nm}_condition_complete", $results, $search_params ); -
apply_filters( "sm_search_{$table_nm}_condition_start", $cond, $params ); -
do_action( "sm_search_{$table_nm}_conditions_array_complete", $search_params ); -
apply_filters( "sm_search_format_query_{$meta_table}_col_name", $search_params['search_col'], $search_params ); -
apply_filters( "sm_search_format_query_{$meta_table}_col_value", $search_params['search_value'], $search_params ); -
apply_filters( "sm_search_format_query_{$table_name}_col_name", $search_params['search_col'], $search_params ); -
apply_filters( "sm_search_format_query_{$table_name}_col_value", $search_params['search_value'], $search_params ); -
apply_filters( "sm_search_format_query_{$table_nm}_col_name", $search_params['search_col'], $search_params ); -
apply_filters( "sm_search_format_query_{$table_nm}_col_value", $search_params['search_value'], $search_params ); -
apply_filters( 'sm_search_format_query_terms_col_value', $search_params['search_value'], $search_params ); -
apply_filters( "sm_search_query_{$meta_table}_from", $from, $search_params ); -
apply_filters( "sm_search_query_{$meta_table}_join", " JOIN ".$wpdb->base_prefix."sm_advanced_search_temp ON (".$wpdb->base_prefix."sm_advanced_search_temp.product_id = {$wpdb->prefix}". $meta_table .".". $params['meta_key_col'] .")", $search_params ); -
apply_filters( "sm_search_query_{$meta_table}_select", $select, $search_params ); -
apply_filters( "sm_search_query_{$meta_table}_where", $where, $search_params ); -
apply_filters( "sm_search_query_{$table_nm}_from", $from, $search_params ); -
apply_filters( "sm_search_query_{$table_nm}_select", $select, $search_params ); -
apply_filters( "sm_search_query_{$table_nm}_where", $where, $search_params ); -
sm_search_query_formatted
filterapply_filters( 'sm_search_query_formatted', $advanced_search_query[$i], $search_params ); -
sm_search_query_terms_from
filterapply_filters( 'sm_search_query_terms_from', $terms_advanced_search_from, $search_params ); -
sm_search_query_terms_select
filterapply_filters( 'sm_search_query_terms_select', $terms_advanced_search_select, $search_params ); -
sm_search_query_terms_where
filterapply_filters( 'sm_search_query_terms_where', $terms_advanced_search_where, $search_params ); -
sm_search_table_types
filterapply_filters( 'sm_search_table_types', $this->advanced_search_table_types ); -
sm_search_terms_cond
filterapply_filters( 'sm_search_terms_cond', $terms_cond, array_merge( $search_params, array( 'table_nm' => $wpdb->prefix .'term_taxonomy.taxonomy' ) ) ); -
do_action( 'sm_search_terms_condition_complete', $result_terms_search, $search_params ); -
apply_filters( 'sm_search_terms_condition_start', $cond_terms, $search_params ); -
do_action( 'sm_search_terms_conditions_array_complete', $search_params ); -
sm_select_tasks_query
filterapply_filters( 'sm_select_tasks_query', "SELECT {$wpdb->prefix}sm_tasks.*" ); -
sm_setting_value
filterapply_filters( 'sm_setting_value', $value, array( 'group' => $group, 'type' => $type, 'setting' => $setting ) ); -
sm_settings_default
filterapply_filters( 'sm_settings_default', $settings ); -
sm_show_pricing_page
filterapply_filters( 'sm_show_pricing_page', false ); -
sm_show_sa_plugins_page
filterapply_filters( 'sm_show_sa_plugins_page', $show_sa_plugins_page ); -
sm_show_tasks_title_modal
filterapply_filters( 'sm_show_tasks_title_modal', Smart_Manager_Settings::get( 'show_tasks_title_modal' ) ); -
apply_filters( 'sm_simple_search_ignored_posts_columns', $ignored_cols, $col_model ); -
sm_terms_sort_join_condition
filterapply_filters( 'sm_terms_sort_join_condition', $join_condition, $args['sort_params'] ); -
apply_filters( 'sm_trash_and_delete_permanently_disable_message', __( 'This functionality has been disabled. Please contact store administrator for enabling the same.', 'smart-manager-for-wp-e-commerce' ) ); -
sm_uneditable_cols
filterapply_filters( 'sm_uneditable_cols', ( ( ! empty( $args['uneditable_cols'] ) && is_array( $args['uneditable_cols'] ) ) ? $args['uneditable_cols'] : array() ) ); -
do_action( 'sm_update_posts_after_update_actions', $update_result['after_update_actions_params'] ); -
sm_update_trash_records
filterapply_filters( 'sm_update_trash_records', ('yes' === get_option('sm_update_trash_records', 'no')) ); -
apply_filters( 'sm_use_date_picker_for_date_or_datetime_cols', Smart_Manager_Settings::get( 'use_date_picker_for_date_or_datetime_cols' ) ); -
apply_filters( 'sm_use_number_field_for_numeric_cols', Smart_Manager_Settings::get( 'use_number_field_for_numeric_cols' ) ); -
sm_view_trash_records
filterapply_filters( 'sm_view_trash_records', ( 'yes' === get_option( 'sm_view_'.$this->dashboard_key.'_trash_records', 'no' ) || 'yes' === Smart_Manager_Settings::get( 'view_trash_records' ) ) ); -
sm_where_tasks_cond
filterapply_filters( 'sm_where_tasks_cond', ' AND '. $wpdb->prefix . 'sm_tasks.post_type = %s' . ( (!empty( $current_user_role ) && 'administrator' === $current_user_role) ? '' : ' AND author = %d') ); -
wpml_current_language
filterapply_filters( 'wpml_current_language', NULL );
Generated from Smart Manager's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Can't find the right hook?
We can build the customisation for you. Describe what you need: