Shortcode_Controller::get_item_params()

Summary

Retrieves the query params for the collections.


Return

(array) Query parameters for the collection.


Source

File: src/BigCommerce/Rest/Shortcode_Controller.php

	public function get_item_params() {
		$params = parent::get_collection_params();
		unset( $params[ 'page' ] );
		$params[ 'per_page' ][ 'default' ] = 0;
		$params[ 'per_page' ][ 'minimum' ] = 0;

		$params[ 'post_id' ] = [
			'description' => __( 'Limit results to only those items with the specified post IDs.', 'bigcommerce' ),
			'type'        => 'array',
			'items'       => [
				'type' => 'integer',
			],
			'default'     => [],
		];

		$params[ 'bc_id' ] = [
			'description' => __( 'Limit results to only those items with the specified product IDs.', 'bigcommerce' ),
			'type'        => 'array',
			'items'       => [
				'type' => 'integer',
			],
			'default'     => [],
		];

		return $params;
	}

Changelog

Changelog
Version Description
4.7.0 Introduced.


User Contributed Notes

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