dozent_query_vars( null $query_var = null )
Get the registered vars by Dozent from the request | query
Parameters
- $query_var
-
(null) (Optional) Registered query var by DozentLMS
Default value: null
Return
(mixed|void)
Source
File: includes/core-functions.php
function dozent_query_vars( $query_var = null ) { $registered_vars = dozent_register_query_vars(); $in_request = []; if ( dozent_count( $registered_vars ) ) { foreach ( $registered_vars as $var ) { $var_in_request = get_query_var( $var ); if ( $var_in_request ) { $in_request[ $var ] = $var_in_request; } } } if ( $query_var ) { $query_var_in_request = get_query_var( $query_var, $in_request ); return apply_filters( 'dozent_query_var', $query_var_in_request, $query_var ); } return apply_filters( 'dozent_query_vars', $in_request ); }
Changelog
Version | Description |
---|---|
DozentLMS 1.0.0 | Introduced. |