You appear to be a bot. Output may be restricted
Description
Show the search field
Usage
$void = EDD_Payment_History_Table::search_box( $text, $input_id );
Parameters
- $text
- ( string ) required – Label for the search box
- $input_id
- ( string ) required – ID of the search box
Returns
void
Source
File name: easy-digital-downloads/includes/admin/payments/class-payments-table.php
Lines:
1 to 19 of 19
public function search_box( $text, $input_id ) { if ( empty( $_REQUEST['s'] ) && !$this->has_items() ) return; $input_id = $input_id . '-search-input'; if ( ! empty( $_REQUEST['orderby'] ) ) echo '<input type="hidden" name="orderby" value="' . esc_attr( $_REQUEST['orderby'] ) . '" />'; if ( ! empty( $_REQUEST['order'] ) ) echo '<input type="hidden" name="order" value="' . esc_attr( $_REQUEST['order'] ) . '" />'; ?> <p class="search-box"> <?php do_action( 'edd_payment_history_search' ); ?> <label class="screen-reader-text" for="<?php echo $input_id ?>"><?php echo $text; ?>:</label> <input type="search" id="<?php echo $input_id ?>" name="s" value="<?php _admin_search_query(); ?>" /> <?php submit_button( $text, 'button', false, false, array('ID' => 'search-submit') ); ?><br/> </p> <?php }