Filter
rpress_use_skus
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#
| Parameter | Type | Description |
|---|---|---|
$ret | bool | Whether 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), inrpress_use_skus()
Was this page helpful?
