dozent_action_field( null $action_name = null, bool $echo = true )


Parameters

$action_name

(null) (Optional) action name used in the action field name

Default value: null

$echo

(bool) (Optional)

Default value: true


Return

(string) Generate field name for dozent action


Source

File: includes/form-functions.php

    function dozent_action_field( $action_name = null, $echo = true )
    {

        if ( ! $action_name ){
            $action_name = 'action_field';
        }

        $field = "<input type='hidden' value='dozent_{$action_name}' name='dozent_action'/>";

        if ($echo) {
            echo $field;
        }

        return $field;
    }

Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.