dozent_input_text( null $field_name = null )

Sanitize and return text field value


Description

See also


Parameters

$field_name

(null) (Optional)

Default value: null


Return

(string|null)


Source

File: includes/form-functions.php

    function dozent_input_text( $field_name = null ) {
        if ( ! $field_name ) {
            return null;
        }
        $value = sanitize_text_field( dozent_array_get( $field_name, $_POST ) );
        if ( ! $value ) {
            $value = sanitize_text_field( dozent_array_get( $field_name, $_GET ) );
        }

        if ( $value ) {
            return $value;
        }

        return null;
    }


Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.