Open Close Store for WooCommerce 5.1.2 has 18 actions and 60 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 Open Close Store for WooCommerce fires an action
add_action( 'media_buttons', function() {
// Your code runs here.
}, 10, 1 );
// Change a value Open Close Store for WooCommerce is about to use
add_filter( 'woc_filters_get_template_part', function( $template, $slug, $name ) {
// Change $template here.
return $template;
}, 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
-
/** * Allow 3rd party plugins to filter template file from their plugin. */ apply_filters( 'woc_filters_get_template_part', $template, $slug, $name ); -
/** * Return what we found with allowing 3rd party to override */ apply_filters( 'woc_filters_locate_template', $template, $template_name, $template_path ); -
apply_filters( "pb_settings_{$this->unique}_args", wp_parse_args( $params['args'], $this->args ), $this ); -
do_action( "pb_settings_{$this->unique}_save_before", $data, $this ); -
apply_filters( "pb_settings_{$this->unique}_sections", $params['sections'], $this ); -
apply_filters( "pb_settings_{$this->unique}_save", $data, $this ); -
do_action( "pb_settings_{$this->unique}_save_after", $data, $this ); -
do_action( "pb_settings_{$this->unique}_saved", $data, $this ); -
apply_filters( 'pb_settings_fa4', false ); -
apply_filters( 'woc_filters_next_time', wp_date( $format, $next_time, wp_timezone() ), $next_time, $format ); -
apply_filters( 'woc_filters_next_time_utc', $next_time, $format ); -
apply_filters( 'WOOOPENCLOSE/Filters/is_open', true ); -
apply_filters( 'active_plugins', (array) get_option( 'active_plugins', array() ) ); -
do_action( 'media_buttons' ); -
apply_filters( "pb_settings_{$this->unique}_control_ops", $control_ops, $this ); -
apply_filters( "pb_settings_{$this->unique}_output_css", WPDK_Settings::$css, $this ); -
apply_filters( "pb_settings_{$this->unique}_widget_ops", $widget_ops, $this ); -
apply_filters( 'pb_settings_chosen_ajax_capability', 'manage_options' ); -
apply_filters( 'pb_settings_color_palette', array() ); -
apply_filters( 'pb_settings_customize_complex_fields', array( 'accordion', 'background', 'border', 'button_set', 'checkbox', 'color_group', 'date', 'dimensions', 'fieldset', 'group', 'image_select', 'image_select_sortable', 'link', 'link_color', 'media', 'palette', 'repeater', 'sortable', 'sorter', 'spacing', 'switcher', 'tabbed', 'typography', ) ); -
do_action( 'pb_settings_enqueue' ); -
apply_filters( 'pb_settings_enqueue_assets', self::$enqueue ); -
apply_filters( 'pb_settings_field_icon_add_icons', pb_settings_get_default_icons() ); -
pb_settings_field_typography_backup_font_family
filter Used by 4 plugins → Copy link Customise this hookapply_filters( 'pb_settings_field_typography_backup_font_family', array( 'Arial, Helvetica, sans-serif', "'Arial Black', Gadget, sans-serif", "'Comic Sans MS', cursive, sans-serif", 'Impact, Charcoal, sans-serif', "'Lucida Sans Unicode', 'Lucida Grande', sans-serif", 'Tahoma, Geneva, sans-serif', "'Trebuchet MS', Helvetica, sans-serif'", 'Verdana, Geneva, sans-serif', "'Courier New', Courier, monospace", "'Lucida Console', Monaco, monospace", 'Georgia, serif'... ); -
pb_settings_field_typography_customwebfonts
filter Used by 4 plugins → Copy link Customise this hookapply_filters( 'pb_settings_field_typography_customwebfonts', array() ); -
pb_settings_field_typography_defaultstyles
filter Used by 4 plugins → Copy link Customise this hookapply_filters( 'pb_settings_field_typography_defaultstyles', array( 'normal', 'italic', '700', '700italic' ) ); -
pb_settings_field_typography_googlestyles
filter Used by 4 plugins → Copy link Customise this hookapply_filters( 'pb_settings_field_typography_googlestyles', array( '100' => 'Thin 100', '100italic' => 'Thin 100 Italic', '200' => 'Extra-Light 200', '200italic' => 'Extra-Light 200 Italic', '300' => 'Light 300', '300italic' => 'Light 300 Italic', 'normal' => 'Normal 400', 'italic' => 'Normal 400 Italic', '500' => 'Medium 500', '500italic' => 'Medium 500 Italic', '600' => 'Semi-Bold 600', '600italic' => 'Semi-Bold 600 Italic', '700' => 'Bold 700', '700i... ); -
pb_settings_field_typography_googlewebfonts
filter Used by 4 plugins → Copy link Customise this hookapply_filters( 'pb_settings_field_typography_googlewebfonts', pb_settings_get_google_fonts() ); -
pb_settings_field_typography_safewebfonts
filter Used by 4 plugins → Copy link Customise this hookapply_filters( 'pb_settings_field_typography_safewebfonts', array( 'Arial', 'Arial Black', 'Helvetica', 'Times New Roman', 'Courier New', 'Tahoma', 'Verdana', 'Impact', 'Trebuchet MS', 'Comic Sans MS', 'Lucida Console', 'Lucida Sans Unicode', 'Georgia, serif', 'Palatino Linotype' ) ); -
apply_filters( 'pb_settings_field_typography_webfonts', $webfonts ); -
apply_filters( 'pb_settings_fields', array( 'accordion', 'background', 'backup', 'border', 'button_set', 'callback', 'checkbox', 'code_editor', 'color', 'color_group', 'content', 'date', 'datetime', 'dimensions', 'fieldset', 'gallery', 'group', 'heading', 'icon', 'image_select', 'image_select_sortable', 'link', 'link_color', 'map', 'media', 'notice', 'number', 'palette', 'radio', 'repeater', 'select', 'slider', 'sortable', 'sorter... ); -
apply_filters( 'pb_settings_icon_ajax_capability', 'manage_options' ); -
do_action( 'pb_settings_init' ); -
do_action( 'pb_settings_loaded' ); -
do_action( 'pb_settings_options_after' ); -
do_action( 'pb_settings_options_before' ); -
apply_filters( 'pb_settings_override', 'wpdk_settings-override' ); -
apply_filters( 'pb_settings_wp_editor', array( 'tinymce' => array( 'wp_skip_init' => true ), ) ); -
apply_filters( 'widget_title', Utils::get_args_option( 'title', $instance ) ); -
do_action( 'woc_after_template_part', $template_name, $template_path, $located, $args ); -
apply_filters( 'woc_all_schedules', $all_schedules ); -
do_action( 'woc_before_template_part', $template_name, $template_path, $located, $args ); -
apply_filters( 'woc_filters_bar_btn_text', Utils::get_option( 'woc_bar_hide_text', esc_html__( 'Hide Message', 'woc-open-close' ) ) ); -
apply_filters( 'woc_filters_calculate_times', $__times, $__time_for, $__day_name ); -
apply_filters( 'woc_filters_current_url', $current_url ); -
apply_filters( 'woc_filters_day_name', $day_name, $day_id ); -
apply_filters( 'woc_filters_days_array', $sorted_days ); -
apply_filters( 'woc_filters_get_active_schedule_id', $this->active_set_id ); -
apply_filters( 'woc_filters_get_template', $located, $template_name, $args, $template_path, $default_path ); -
apply_filters( 'woc_filters_get_user_meta', $meta_value, $meta_key, $user_id, $default ); -
apply_filters( 'woc_filters_is_pro', false ); -
apply_filters( 'woc_filters_localize_scripts', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ), 'nonce' => wp_create_nonce( 'woc-verify' ), 'copyText' => esc_html__( 'Copied !', 'woc-open-close' ), 'removeConf' => esc_html__( 'Are you really want to remove this schedule?', 'woc-open-close' ), 'trashConfirmText' => esc_html__( 'Are you sure to delete this Schedule?', 'woc-open-close' ), 'activeConfirmText' => esc_html__( 'Are you sure to M... ); -
apply_filters( 'woc_filters_meta_field_sections', $field_sections ); -
apply_filters( 'woc_filters_plugin_path', untrailingslashit( WOOOPENCLOSE_PLUGIN_DIR ) ); -
apply_filters( 'woc_filters_product_can_order', $can_order, $product_id ); -
apply_filters( 'woc_filters_schedule_classes', implode( ' ', $classes ) ); -
apply_filters( 'woc_filters_schedules_wrapper_classes', implode( ' ', $classes ) ); -
apply_filters( 'woc_filters_settings_pages', $field_sections ); -
apply_filters( 'woc_filters_shop_close_message', $woc_message ); -
apply_filters( 'woc_filters_status_bar_classes', implode( ' ', apply_filters( 'woc_filters_status_bar_classes_arr', $classes ) ) ); -
apply_filters( 'woc_filters_status_bar_classes_arr', $classes ); -
apply_filters( 'woc_filters_status_image', $image_url, $image_for, $image ); -
do_action( 'woc_fs_loaded' ); -
apply_filters( 'WOOOPENCLOSE/Filters/get_schedules', $schedules ); -
apply_filters( 'WOOOPENCLOSE/Filters/todays_schedule_details', $schedule_details ); -
do_action( 'wpdk_init_woc_open_close', $wooopenclose_wpdk ); -
do_action( "WPDK_Settings/after_field/field_{($field['id']??'')}" ); -
apply_filters( 'WPDK_Settings/Filters/field_value', $value, ( $field['id'] ?? '' ), $field['type'] ); -
WPDK_Settings/Filters/integration_server_{$this->plugin_unique_id}
filter Copy link Customise this hookapply_filters( "WPDK_Settings/Filters/integration_server_{$this->plugin_unique_id}", '' ); -
do_action( "WPDK_Settings/meta_section/{$section['id']}", $section ); -
do_action( "WPDK_Settings/section/{$section['id']}", $section ); -
apply_filters( 'WPDK/Utils/get_meta', $meta_value, $meta_key, $post_id, $default ); -
apply_filters( "WPDK/Utils/get_option{$option_key}", $option_value ); -
apply_filters( "WPDK/Utils/register_post_type{$post_type}", $args ); -
apply_filters( "WPDK/Utils/register_taxonomy_{$tax_name}", $args, $obj_type ); -
apply_filters( 'WPDK/Utils/update_option', $all_options, $option_key, $new_value );
Generated from Open Close Store for WooCommerce'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: