*/ public function save_redirects() { // Update the database option. $this->redirect_option->save(); // Save the redirect file. $this->export_redirects(); } /** * Filter the redirects that don't match the needed format. * * @param WPSEO_Redirect $redirect The redirect to filter. * * @return bool */ private function filter_redirects_by_format( WPSEO_Redirect $redirect ) { return $redirect->get_format() === $this->redirect_format; } }