get_slug() ] = [ 'label' => esc_html__( 'Block Links Opening New Windows', 'accessibility-checker' ), 'type' => 'checkbox', 'labelledby' => 'prevent_links_opening_in_new_windows', 'description' => sprintf( // translators: %1%s: A tag containing target="_blank". esc_html__( 'Prevent links from opening in a new window or tab by removing %1$s.', 'accessibility-checker' ), 'target="_blank"' ), 'fix_slug' => $this->get_slug(), 'group_name' => $this->get_nicename(), 'help_id' => 8493, ]; return $fields; } /** * Run the fix for adding the comment and search form labels. */ public function run(): void { if ( ! get_option( 'edac_fix_' . $this->get_slug(), false ) ) { return; } add_filter( 'edac_filter_frontend_fixes_data', function ( $data ) { $data[ $this->get_slug() ] = [ 'enabled' => true, ]; return $data; } ); } }