Description #
Returns an associative array of dokan-lite commission types. Currently Flat and Percentage.
Return #
(array)
Params #
None
Usage #
Here is an example of how we can make a select field from the data getting by dokan_commission_types();
<select>
<?php
$commisstion_types = dokan_commission_types();
foreach ( $commisstion_types as $key => $value ) : ?>
<option value="<?php echo esc_attr( $key ); ?>"><?php echo esc_attr( $value ); ?></option>
<?php endforeach; ?>
</select>
Hooks #
dokan_commission_types (filter)