WebberZone Image Optimizer 1.3.2 has 6 actions and 38 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 WebberZone Image Optimizer fires an action
add_action( 'wzio_attachment_converted', function( $attachment_id, $summary, $args ) {
// Your code runs here.
}, 10, 3 );
// Change a value WebberZone Image Optimizer is about to use
add_filter( 'image_size_names_choose', 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
-
/** * After Settings Output filter */ apply_filters( "{$this->prefix}_after_setting_output", $html, $args ); -
/** * Skip settings that are not really settings. */ apply_filters( "{$this->prefix}_non_setting_types", array( 'header', 'descriptive_text' ) ); -
/** * Fires after an attachment has been processed. */ do_action( 'wzio_attachment_converted', $attachment_id, $summary, $args ); -
/** * Filters the settings array. */ apply_filters( "{$this->prefix}_get_settings_types", $options ); -
/** * Action triggered when displaying the meta box. */ do_action( "{$this->prefix}_meta_box", $post ); -
/** * Filter the post meta array which contains post-specific settings. */ apply_filters( "{$this->prefix}_meta_key", $post_meta, $post_id ); -
/** * Skip settings that are not really settings. */ apply_filters( "{$this->prefix}_metabox_non_setting_types", array( 'header', 'descriptive_text' ) ); -
/** * Filter allowed tags allowed when sanitizing text and textarea fields. */ apply_filters( "{$this->prefix}_sanitize_allowed_tags", $allowedtags ); -
/** * After Settings Output filter */ apply_filters( "{$this->prefix}_setting_field_description", $desc, $args ); -
/** * Filter the settings for the tab. e.g. prefix_settings_general_sanitize. */ apply_filters( "{$this->prefix}_settings_{$tab}_sanitize", $input ); -
/** * Filters the default settings array. */ apply_filters( "{$this->prefix}_settings_defaults", $options ); -
/** * Filters the allowed HTML tags and attributes for settings form output. */ apply_filters( "{$this->prefix}_settings_form_allowed_html", $allowed ); -
/** * Action to add more buttons in each tab. */ do_action( "{$this->prefix}_settings_form_buttons", $tab_id, $tab_name, $this->settings_sections ); -
/** * Filter the settings array before it is returned. */ apply_filters( "{$this->prefix}_settings_sanitize", $output, $input ); -
/** * Filters a blog option value. */ apply_filters( "{self::FILTER_PREFIX}_blog_option_{$key}", $value, $blog_id, $key ); -
/** * Filter the value for the option being fetched. */ apply_filters( "{self::FILTER_PREFIX}_get_option", $value, $key, $default_value ); -
/** * Key specific filter for the value of the option being fetched. */ apply_filters( "{self::FILTER_PREFIX}_get_option_{$key}", $value, $key, $default_value ); -
/** * Filters the settings array. */ apply_filters( "{self::FILTER_PREFIX}_get_settings", get_option( self::SETTINGS_OPTION, array() ) ); -
/** * Filters the registered settings types. */ apply_filters( "{self::FILTER_PREFIX}_get_settings_types", $options ); -
/** * Filter the default settings array. */ apply_filters( "{self::FILTER_PREFIX}_settings_defaults", Admin\Settings::get_defaults() ); -
/** * Filters the value before it is saved. */ apply_filters( "{self::FILTER_PREFIX}_update_option", $value, $key ); -
/** * This filter is documented in wp-admin/includes/media.php */ apply_filters( 'image_size_names_choose', array( 'thumbnail' => __( 'Thumbnail' ), 'medium' => __( 'Medium' ), 'large' => __( 'Large' ), ) ); -
/** * Filter the files that will be converted for an attachment. */ apply_filters( 'wzio_attachment_files', $files, $attachment_id ); -
/** * Filter the conversion arguments. */ apply_filters( 'wzio_conversion_args', $args, $overrides ); -
/** * Filter the quality reduction used for one retry after an oversized encode. */ apply_filters( 'wzio_conversion_retry_step', $default, $format, $path, $driver_args ); -
/** * Filter whether images are rewritten on this request. */ apply_filters( 'wzio_delivery_enabled', $enabled ); -
/** * Filter the conversion drivers and the order they are tried in. */ apply_filters( 'wzio_driver_classes', array( Imagick_Driver::class, GD_Driver::class ) ); -
/** * Filter whether a file is excluded from conversion. */ apply_filters( 'wzio_is_excluded', $excluded, $path ); -
/** * Filter the multiplier applied to the estimated bitmap size. */ apply_filters( 'wzio_memory_multiplier', 2.5 ); -
/** * Filters the absolute paths checked, in order, for a PNG compression tool. */ apply_filters( 'wzio_png_tool_paths', $paths ); -
do_action( "{$this->prefix}_repeater_field_{$field['type']}", $field_args, $index ); -
do_action( "{$this->prefix}_settings_page_header" ); -
do_action( "{$this->prefix}_settings_page_header_before" ); -
apply_filters( "{self::$prefix}_registered_settings", $settings ); -
apply_filters( "{self::$prefix}_settings_advanced", $settings ); -
apply_filters( "{self::$prefix}_settings_defaults", $defaults ); -
apply_filters( "{self::$prefix}_settings_delivery", $settings ); -
apply_filters( "{self::$prefix}_settings_general", $settings ); -
apply_filters( "{self::$prefix}_settings_help_sidebar", $help_sidebar ); -
apply_filters( "{self::$prefix}_settings_help_tabs", $help_tabs ); -
apply_filters( "{self::$prefix}_settings_quality", $settings ); -
apply_filters( "{self::$prefix}_settings_sections", $settings_sections ); -
apply_filters( "{self::$prefix}_translation_strings", $strings );
Generated from WebberZone Image Optimizer'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: