$current_status, 'show_sync_notice' => $this->get_show_sync_notice( $current_status ), ), $this->dump_routes_and_nonces() ); } /** * Imports data into the model. * * @param array $data Data to be imported into the model. */ public function import_data( array $data ) { } /** * Exports strings. * * @return array An array of strings. */ public function export_strings(): array { $status = $this->get_waf_status(); if ( $status ) { return array( esc_html__( 'Web Application Firewall (WAF) active', 'wpdef' ), ); } return array( esc_html__( 'Web Application Firewall (WAF) inactive', 'wpdef' ), ); } } $current_status, 'show_sync_notice' => $this->get_show_sync_notice( $current_status ), ), $this->dump_routes_and_nonces() ); } /** * Imports data into the model. * * @param array $data Data to be imported into the model. */ public function import_data( array $data ) { } /** * Exports strings. * * @return array An array of strings. */ public function export_strings(): array { $status = $this->get_waf_status(); if ( $status ) { return array( esc_html__( 'Web Application Firewall (WAF) active', 'wpdef' ), ); } return array( esc_html__( 'Web Application Firewall (WAF) inactive', 'wpdef' ), ); } } $current_status, 'show_sync_notice' => $this->get_show_sync_notice( $current_status ), ), $this->dump_routes_and_nonces() ); } /** * Imports data into the model. * * @param array $data Data to be imported into the model. */ public function import_data( array $data ) { } /** * Exports strings. * * @return array An array of strings. */ public function export_strings(): array { $status = $this->get_waf_status(); if ( $status ) { return array( esc_html__( 'Web Application Firewall (WAF) active', 'wpdef' ), ); } return array( esc_html__( 'Web Application Firewall (WAF) inactive', 'wpdef' ), ); } }