Converter for Media 6.7.2 has 12 actions and 37 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 Converter for Media fires an action
add_action( 'webpc_after_conversion', function( $output_path, $source_path ) {
// Your code runs here.
}, 10, 2 );
// Change a value Converter for Media is about to use
add_filter( 'webpc_dir_path', function( $value, $arg2 ) {
// Change $value here.
return $value;
}, 10, 2 );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
-
webpc_dir_path
filterapply_filters( 'webpc_dir_path', '', 'webp' ); -
webpc_dir_name
filterapply_filters( 'webpc_dir_name', $this->get_relative_path(), $this->get_type() ); -
webpc_server_errors
filterapply_filters( 'webpc_server_errors', [], true, $refresh_conversion_errors ); -
webpc_dir_url
filterapply_filters( 'webpc_dir_url', '', 'uploads' ); -
webpc_supported_source_file
filterapply_filters( 'webpc_supported_source_file', true, basename( $path ), $path ); -
webpc_option_quality_levels
filterapply_filters( 'webpc_option_quality_levels', [ 75, 80, 85, 90, 95 ] ); -
apply_filters( 'webpc_supported_source_directory', true, basename( dirname( $filename ) ), $filename ); -
webpc_htaccess_rules
filterapply_filters( 'webpc_htaccess_rules', $content, $path . '/.htaccess' ); -
webpc_after_conversion
actiondo_action( 'webpc_after_conversion', $output_path, $source_path ); -
webpc_attachment_paths
filterapply_filters( 'webpc_attachment_paths', $paths, $attachment_id ); -
webpc_convert_paths
actiondo_action( 'webpc_convert_paths', $attachment->get_attachment_paths( $post_id ), $regenerate_force, $quality_level ); -
webpc_delete_paths
actiondo_action( 'webpc_delete_paths', $attachment->get_attachment_paths( $post_id ), true ); -
apply_filters( 'webpc_htaccess_rewrite_output', $root_suffix, $document_root ); -
apply_filters( 'webpc_htaccess_rewrite_parent', '' ); -
webpc_server_errors_messages
filterapply_filters( 'webpc_server_errors_messages', [] ); -
webpc_site_url
filterapply_filters( 'webpc_site_url', ( defined( 'WP_HOME' ) ) ? WP_HOME : get_site_url() ); -
webpc_source_directories
filterapply_filters( 'webpc_source_directories', [] ); -
breeze_clear_all_cache
actiondo_action( 'breeze_clear_all_cache' ); -
do_action( 'cache_enabler_clear_complete_cache' ); -
https_local_ssl_verify
filterapply_filters( 'https_local_ssl_verify', false ); -
do_action( 'litespeed_control_set_nocache', 'Converter for Media' ); -
litespeed_purge
actiondo_action( 'litespeed_purge', '*' ); -
webpc_attachment_stats
filterapply_filters( 'webpc_attachment_stats', '', $post_id, $quality_level ); -
webpc_convert_attachment
actiondo_action( 'webpc_convert_attachment', $post_id, true, $quality_level ); -
webpc_convert_errors
filterapply_filters( 'webpc_convert_errors', $method->get_errors() ); -
webpc_cron_paths_interval
filterapply_filters( 'webpc_cron_paths_interval', 3600 ); -
webpc_debug_image_url
filterapply_filters( 'webpc_debug_image_url', $image_url ); -
webpc_gd_before_saving
filterapply_filters( 'webpc_gd_before_saving', $image, $source_path ); -
webpc_gd_create_methods
filterapply_filters( 'webpc_gd_create_methods', [ 'imagecreatefromjpeg' => [ 'jpg', 'jpeg' ], 'imagecreatefrompng' => [ 'png' ], 'imagecreatefromgif' => [ 'gif' ], ] ); -
apply_filters( 'webpc_htaccess_cache_control_private', $cache_control ); -
webpc_htaccess_mod_expires
filterapply_filters( 'webpc_htaccess_mod_expires', $content ); -
webpc_htaccess_mod_headers
filterapply_filters( 'webpc_htaccess_mod_headers', $content ); -
webpc_htaccess_mod_mime
filterapply_filters( 'webpc_htaccess_mod_mime', $content ); -
webpc_htaccess_mod_rewrite
filterapply_filters( 'webpc_htaccess_mod_rewrite', trim( $content ), $output_path ); -
apply_filters( 'webpc_htaccess_mod_rewrite_inherit', ! $settings[ RewriteInheritanceOption::OPTION_NAME ] ); -
apply_filters( 'webpc_htaccess_mod_rewrite_referer', false ); -
webpc_htaccess_original_cond
filterapply_filters( 'webpc_htaccess_original_cond', 'RewriteCond %{QUERY_STRING} original$' ); -
webpc_htaccess_rewrite_path
filterapply_filters( 'webpc_htaccess_rewrite_path', str_replace( '//', '/', sprintf( '/%s/', $root_path ) ) ); -
webpc_htaccess_rewrite_root
filterapply_filters( 'webpc_htaccess_rewrite_root', ( $root_document !== $root_document_real ) ? ( $root_wordpress . '/' ) : ( '%{DOCUMENT_ROOT}' . $root_suffix ) ); -
webpc_imagick_before_saving
filterapply_filters( 'webpc_imagick_before_saving', $image, $source_path ); -
webpc_passthru_url_nocache
filterapply_filters( 'webpc_passthru_url_nocache', true ); -
webpc_remote_max_filesize
filterapply_filters( 'webpc_remote_max_filesize', self::MAX_FILESIZE_BYTES ); -
webpc_remote_timeout
filterapply_filters( 'webpc_remote_timeout', 30 ); -
webpc_settings_options
filterapply_filters( 'webpc_settings_options', $options ); -
webpc_settings_page_loaded
actiondo_action( 'webpc_settings_page_loaded', $page->get_menu_parent(), $page->get_slug() ); -
webpc_settings_updated
actiondo_action( 'webpc_settings_updated', $plugin_settings, $previous_settings ); -
webpc_site_root
filterapply_filters( 'webpc_site_root', preg_replace( '/(\/|\\\\)/', DIRECTORY_SEPARATOR, $root_dir ) ); -
wpfc_clear_all_cache
actiondo_action( 'wpfc_clear_all_cache' ); -
wphb_clear_page_cache
actiondo_action( 'wphb_clear_page_cache' );
Generated from Converter for Media'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: