Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Command::get_context_fields( string $context )

Get a list of fields present in a given context


Parameters Parameters

$context

(string) (Required)


Top ↑

Return Return

(array)


Top ↑

Source Source

File: libraries/lifterlms-cli/src/Commands/Restful/Command.php

482
483
484
485
486
487
488
489
490
private function get_context_fields( $context ) {
    $fields = array();
    foreach ( $this->schema['properties'] as $key => $args ) {
        if ( empty( $args['context'] ) || in_array( $context, $args['context'] ) ) {
            $fields[] = $key;
        }
    }
    return $fields;
}

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.