Skip to content
Docs
Get RestroPress

Filter

rpress_use_skus

Updated
On this page

Filters whether SKUs are enabled for menu items.

The default comes from the Enable SKU Entry setting. The result is cast to a boolean.

Parameters#

ParameterTypeDescription
$retboolWhether SKU entry is enabled.

Return value#

bool. Whether SKUs are used.

Example#

function my_use_skus( $use_skus ) {
	return $use_skus;
}
add_filter( 'rpress_use_skus', 'my_use_skus' );

Source#

Applied in:

  • includes/rp-core-functions.php (line 2478), in rpress_use_skus()
Was this page helpful?