开发者 | opendsi |
---|---|
更新时间 | 2017年10月13日 21:17 |
PHP版本: | 4.4 及以上 |
WordPress版本: | 4.8 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
dds_get_sensei_course_degrees_of_difficulty()
function.
Yes. It depends on the Sensei LMS plugin.
No. There are no new database tables with this plugin.
Yes. It loads the term-image.css
and term-image.js
files on the admin screens related to Degree of Difficulty.
Those files are loaded by the WP Term Images plugin which comes included.
Yes. Click on the "Choose Image" button when adding or editing a Degree of Difficulty.
Sample icons are available in the assets/images/
plugin folder.
The plugin comes with an helper function named dds_get_sensei_course_degree_of_difficulty()
.
It accepts a Sensei course ID or a WooCommerce product ID as first argument.
Choose where you would like to display degrees of difficulty and make use of that function in your theme's functions.php
file.
Here is a complete example to display the degree of difficulty next to the WooCommerce product price:
`
/**
Yes. It is translated in French (fr_FR).
You will find the translation files in the lang/
folder.
New translations are welcome at https://translate.wordpress.org/projects/wp-plugins/degree-of-difficulty-for-sensei
https://wordpress.org/support/plugin/degree-of-difficulty-for-sensei/