diff --git a/inc/Engine/Media/Fonts/Clean/Clean.php b/inc/Engine/Media/Fonts/Clean/Clean.php index fd753d1d5d..f20c0509d4 100644 --- a/inc/Engine/Media/Fonts/Clean/Clean.php +++ b/inc/Engine/Media/Fonts/Clean/Clean.php @@ -3,6 +3,8 @@ namespace WP_Rocket\Engine\Media\Fonts\Clean; +use WP_Rocket\Engine\Media\Fonts\Filesystem; + class Clean { /** * Filesystem instance @@ -56,6 +58,11 @@ public function clean_on_option_change( $old_value, $value ) { $this->clean_css_fonts(); - do_action( 'rocket_fonts_locally_hosted_changed' ); + /** + * Fires when the option to host fonts locally is changed + * + * @since 3.18 + */ + do_action( 'rocket_host_fonts_locally_changed' ); } }