is_serving_webp() ) { $this->trigger_webp_change(); } } /** * On plugin deactivation, activate Rocket webp cache if the plugin is serving webp. * * @since 3.4 * @access public * @author Grégory Viguier */ public function plugin_deactivation() { if ( $this->is_serving_webp() ) { $this->trigger_webp_change(); } } /** * Trigger an action when the webp feature is enabled/disabled in a third party plugin. * * @since 3.4 * @access public * @author Grégory Viguier */ public function trigger_webp_change() { /** * Trigger an action when the webp feature is enabled/disabled in a third party plugin. * * @since 3.4 * @author Grégory Viguier */ do_action( 'rocket_third_party_webp_change' ); } }