Function Reference: geodir_payment_invoice_admin_search_box

Summary

Backend invoice list page search form.

Package

GeoDirectory_Payment_Manager

Parameters

$text
(string) (required) Submit button text.

Default: None
$text_input_id
(string) (required) HTML id for input box.

Default: None

Return Values

(string)
  • search form HTML.

Change Log

Since: 1.3.6

Source Code

function geodir_payment_invoice_admin_search_box( $text, $text_input_id ) {
$input_id = $text_input_id . ‘-search-input’;
$current_url = set_url_scheme( ‘http://’ . $_SERVER[‘HTTP_HOST’] . $_SERVER[‘REQUEST_URI’] );
$current_url = remove_query_arg( array( ‘hotkeys_highlight_last’, ‘hotkeys_highlight_first’ ), $current_url );
$current_url_search = esc_url( remove_query_arg( array( ‘s’, ‘status’, ‘paged’ ), $current_url ), ”, ” );
$current_url = esc_url( $current_url);

$statuses = geodir_payment_all_payment_status(false);
$statuses[‘incomplete’] = __(‘Incomplete’, ‘geodir_payments’);
$status = isset( $_REQUEST[‘status’] ) ? wp_unslash( trim( $_REQUEST[‘status’] ) ) : ”;

ob_start();
?>