Automattic\WooCommerce\Internal\Admin\ProductForm

Component::get_missing_arguments()publicWC 1.0

Get missing arguments of args array.

Method of the class: Component{}

No Hooks.

Return

Array.

Usage

$Component = new Component();
$Component->get_missing_arguments( $args );
$args(array) (required)
field arguments.

Component::get_missing_arguments() code WC 9.0.1

public function get_missing_arguments( $args ) {
	return array_values(
		array_filter(
			$this->required_arguments,
			function( $arg_key ) use ( $args ) {
				return null === self::get_argument_from_path( $args, $arg_key );
			}
		)
	);
}