You appear to be a bot. Output may be restricted
Description
Get a field valueWe may need to prefix the field for the form, so that we don't get confused with other query parms Also cater for fields which are arrays.
Usage
OIK_Clone_Servers_List_Table::get_field( $field );
Parameters
- $field
- ( mixed ) required –
Returns
voidSource
File name: oik-clone/admin/class-oik-clone-servers-list-table.phpLines:
1 to 13 of 13
function get_field( $field ) { $value = bw_array_get( $_REQUEST, $field, null ); if ( is_array( $value ) ) { // @TODO - Don't bother performing any validation yet foreach ( $value as $k => $v ) { $value[$k] = stripslashes( trim( $v ) ) ; } } else { $value = stripslashes( trim( $value ) ); } return( $value ); }View on GitHub